This commit is contained in:
邹宗楠
2024-05-27 15:44:38 +08:00
parent cd8c78cc08
commit 6a8aa0cfff
5 changed files with 55 additions and 22 deletions

View File

@@ -5,7 +5,6 @@ import (
"encoding/base64"
"encoding/json"
"errors"
"git.rosy.net.cn/jx-callback/globals"
"regexp"
"strings"
"time"
@@ -250,8 +249,6 @@ func LoginInternal(ctx *Context, authType, authID, authIDType, authSecret string
realAuthID = user.GetID()
}
authBindEx, err = handler.VerifySecret(realAuthID, authSecret)
globals.SugarLogger.Debugf("============authBindEx := %s", utils.Format4Output(authBindEx, false))
globals.SugarLogger.Debugf("============authBindEx := %v", err)
if err == nil {
if authBindEx == nil { // mobile, email会返回nil表示不会新建AuthBind实体
user = userProvider.GetUser(authID, authIDType)