This commit is contained in:
邹宗楠
2024-05-27 10:41:35 +08:00
parent ffabe37465
commit cd8c78cc08
2 changed files with 17 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ import (
"encoding/base64"
"encoding/json"
"errors"
"git.rosy.net.cn/jx-callback/globals"
"regexp"
"strings"
"time"
@@ -248,7 +249,10 @@ func LoginInternal(ctx *Context, authType, authID, authIDType, authSecret string
}
realAuthID = user.GetID()
}
if authBindEx, err = handler.VerifySecret(realAuthID, authSecret); err == nil {
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)
authBindEx = &AuthBindEx{