tiktok兼容

This commit is contained in:
richboo111
2022-08-17 16:31:37 +08:00
parent 9ed495e836
commit 6fdfb536ab
2 changed files with 13 additions and 0 deletions

View File

@@ -249,6 +249,7 @@ func LoginInternal(ctx *Context, authType, authID, authIDType, authSecret string
}
realAuthID = user.GetID()
}
globals.SugarLogger.Debug("打印realAuthID检测是否为空==================", realAuthID)
if authBindEx, err = handler.VerifySecret(realAuthID, authSecret); err == nil {
globals.SugarLogger.Debugf("Login authBindEx", utils.Format4Output(authBindEx, false))
if authBindEx == nil { // mobile, email会返回nil表示不会新建AuthBind实体