1
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user