From 69b580de8e264f72e909bee24814404f38198109 Mon Sep 17 00:00:00 2001 From: richboo111 Date: Fri, 12 Aug 2022 15:24:06 +0800 Subject: [PATCH] dd --- business/auth2/auth2.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/business/auth2/auth2.go b/business/auth2/auth2.go index bb7f9cdb6..e449a43ca 100644 --- a/business/auth2/auth2.go +++ b/business/auth2/auth2.go @@ -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)