1
This commit is contained in:
@@ -229,7 +229,7 @@ func RegisterUserWithMobile(ctx *jxcontext.Context, user *model.User, mobileVeri
|
||||
outAuthInfo, err = auth2.BindUser(inAuthInfo, user)
|
||||
}
|
||||
} else if dao.IsDuplicateError(err) {
|
||||
if user.LastLoginType != "" && user.LastLoginType == alipay.AuthType {
|
||||
if user.LastLoginType == alipay.AuthType {
|
||||
if user2, _ := dao.GetUserByID(dao.GetDB(), "mobile", user.GetMobile()); user2 != nil {
|
||||
user.UserID = user2.GetID()
|
||||
outAuthInfo, err = auth2.BindUser(inAuthInfo, user)
|
||||
|
||||
Reference in New Issue
Block a user