|
@@ -43,11 +43,11 @@ func (l *DoGptsUserLoginLogic) DoGptsUserLogin(req *types.GptsUserLoginReq) (res
|
|
|
}
|
|
|
|
|
|
if user.Status != nil && *user.Status != uint32(utils.StatusNormal) {
|
|
|
- return nil, errorx.NewCodeInvalidArgumentError("login.userBanned")
|
|
|
+ return nil, errorx.NewCodeInvalidArgumentError("用户被锁定")
|
|
|
}
|
|
|
|
|
|
if !utils.BcryptCheck(*req.Password, *user.Password) {
|
|
|
- return nil, errorx.NewCodeInvalidArgumentError("login.wrongUsernameOrPassword")
|
|
|
+ return nil, errorx.NewCodeInvalidArgumentError("用户名或密码错误")
|
|
|
}
|
|
|
|
|
|
valid := utils.CheckGptLogin(user.RoleIds)
|