This commit is contained in:
苏尹岚
2021-03-22 16:03:14 +08:00
parent be3476e351
commit 34cab3adf9
3 changed files with 121 additions and 223 deletions

View File

@@ -266,6 +266,10 @@ func LoginInternal(ctx *Context, authType, authID, authIDType, authSecret string
// if user != nil {
// authBindEx.UserID = user.GetID()
// }
if user2 := userProvider.GetUser(authBindEx.UserHint.Email, UserIDMobile); user2 != nil {
user = user2
}
} else if authBindEx.UserID != "" {
user = userProvider.GetUser(authBindEx.UserID, UserIDID)
}