From ce1a9f3816f3490587f9de6c94659d9104de081d Mon Sep 17 00:00:00 2001 From: richboo111 Date: Fri, 12 Aug 2022 15:18:52 +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 e449a43ca..bb7f9cdb6 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.Email, UserIDMobile); user2 != nil { + if user2 := userProvider.GetUser(authBindEx.UserHint.Mobile, UserIDMobile); user2 != nil { user = user2 } globals.SugarLogger.Debug("user检测1=============", user)