- fix bug in UnionFindAuthBind

This commit is contained in:
gazebo
2019-03-09 14:20:21 +08:00
parent 960a022b25
commit 4b362baea9
3 changed files with 10 additions and 2 deletions

View File

@@ -190,6 +190,7 @@ func Login(authType, authID, authIDType, authSecret string) (authInfo *AuthInfo,
realAuthID = user.GetID()
}
if authBindEx, err = handler.VerifySecret(realAuthID, authSecret); err == nil {
globals.SugarLogger.Debugf("auth2 Login authBindEx:%s", utils.Format4Output(authBindEx, false))
if authBindEx == nil { // mobile, email会返回nil表示不会新建AuthBind实体
user = userProvider.GetUser(authID, authIDType)
authBindEx = &AuthBindEx{