Skip to content

Commit

Permalink
fix: 修复BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
Lansongxx committed Apr 19, 2024
1 parent c1905a9 commit d4240de
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions biz/application/service/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ func (s *AuthServiceImpl) Login(ctx context.Context, req *gensts.LoginReq) (resp
return resp, err
}

if req.Password == "" {
req.Password = consts.DefaultPassword
}
if user.PassWord != req.Password {
return resp, consts.ErrPasswordNotEqual
}
Expand Down

0 comments on commit d4240de

Please sign in to comment.