From eaebbd387c19132cd6ef4aa06d4dcf627d928025 Mon Sep 17 00:00:00 2001 From: gazebo Date: Wed, 28 Aug 2019 10:53:01 +0800 Subject: [PATCH] - fk --- business/auth2/auth2.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/business/auth2/auth2.go b/business/auth2/auth2.go index d744e7b86..25ee10c06 100644 --- a/business/auth2/auth2.go +++ b/business/auth2/auth2.go @@ -269,7 +269,7 @@ func Login(authType, authID, authIDType, authSecret string) (authInfo *AuthInfo, } authInfo = createAuthInfo(user, authBindEx) if needAutoAddAuthBind { - if AddAuthBind(user, authInfo) == nil { + if authers[authInfo.AuthBindInfo.Type].AddAuthBind(authInfo.AuthBindInfo, user.GetName()) == nil { // todo,用户类型应该要与RegisterUser一起统一处理 userProvider.UpdateUserType(user.GetID(), handler.GetUserType(), UpdateUserTypeAdd) }