fix
This commit is contained in:
@@ -45,10 +45,10 @@ func (l *UserRegisterLogic) UserRegister(req *types.RequestUserRegister, userinf
|
||||
return resp.SetStatusWithMessage(basic.CodeOAuthEmailErr, "email len must < 50")
|
||||
}
|
||||
|
||||
// _, err := l.svcCtx.AllModels.FsUser.FindUserByEmail(l.ctx, req.Email)
|
||||
// if err == nil {
|
||||
// return resp.SetStatus(basic.CodeEmailExistsErr)
|
||||
// }
|
||||
_, err := l.svcCtx.AllModels.FsUser.FindUserByEmail(l.ctx, req.Email)
|
||||
if err == nil {
|
||||
return resp.SetStatus(basic.CodeEmailExistsErr)
|
||||
}
|
||||
|
||||
if !TimeLimit.Is(req.Email) {
|
||||
return resp.SetStatus(basic.CodeEmailTimeShortErr)
|
||||
|
||||
Reference in New Issue
Block a user