重复注册token过期
This commit is contained in:
@@ -179,7 +179,12 @@ func RegisterUserWithMobile(ctx *jxcontext.Context, user *model.User, mobileVeri
|
||||
return nil, err
|
||||
}
|
||||
if mobileAuth != nil && !mobileAuth.IsUserEmpty() {
|
||||
return nil, jsonerr.New(mobileAuth, model.ErrCodeJsonUserAlreadyExist)
|
||||
auth2.RemoveUserInfo(mobileAuth.Token)
|
||||
if newAuthInfo, err := auth2.BindUser(mobileAuth, user); err == nil {
|
||||
return nil, jsonerr.New(newAuthInfo, model.ErrCodeJsonUserAlreadyExist)
|
||||
} else {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
} else if inAuthInfo != nil {
|
||||
user.Mobile = nil
|
||||
|
||||
Reference in New Issue
Block a user