Merge branch 'develop' of gitee.com:fusenpack/fusenapi into develop
This commit is contained in:
@@ -41,10 +41,10 @@ func (l *UserRegisterLogic) UserRegister(req *types.RequestUserRegister, userinf
|
||||
return resp.SetStatus(basic.CodeOAuthEmailErr)
|
||||
}
|
||||
|
||||
_, 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