diff --git a/biz/application/service/auth.go b/biz/application/service/auth.go index c6e7aa8..634cd7f 100644 --- a/biz/application/service/auth.go +++ b/biz/application/service/auth.go @@ -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 }