This commit is contained in:
gazebo
2019-08-28 10:53:01 +08:00
parent 5eab792196
commit eaebbd387c

View File

@@ -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)
}