This commit is contained in:
苏尹岚
2020-04-13 09:34:59 +08:00
parent 55ecbdc6c2
commit e4b11a73cb
2 changed files with 2 additions and 1 deletions

View File

@@ -181,6 +181,7 @@ func RegisterUserWithMobile(ctx *jxcontext.Context, user *model.User, mobileVeri
if mobileAuth != nil && !mobileAuth.IsUserEmpty() {
auth2.RemoveUserInfo(mobileAuth.Token)
if newAuthInfo, err := auth2.BindUser(mobileAuth, user); err == nil {
globals.SugarLogger.Debugf("testRegisterUserWithMobile", utils.Format4Output(mobileAuth, false), utils.Format4Output(newAuthInfo, false))
return nil, jsonerr.New(newAuthInfo, model.ErrCodeJsonUserAlreadyExist)
} else {
return nil, err