This commit is contained in:
richboo111
2022-08-12 15:24:06 +08:00
parent ce1a9f3816
commit 69b580de8e

View File

@@ -275,7 +275,7 @@ func LoginInternal(ctx *Context, authType, authID, authIDType, authSecret string
// if user != nil {
// authBindEx.UserID = user.GetID()
// }
if user2 := userProvider.GetUser(authBindEx.UserHint.Mobile, UserIDMobile); user2 != nil {
if user2 := userProvider.GetUser(authBindEx.UserHint.Email, UserIDMobile); user2 != nil {
user = user2
}
globals.SugarLogger.Debug("user检测1=============", user)