This commit is contained in:
苏尹岚
2021-04-16 17:58:21 +08:00
parent e5115da909
commit 19e5f5c140
2 changed files with 18 additions and 3 deletions

View File

@@ -325,6 +325,7 @@ func AddAuthBind(user IUser, newAuthInfo *AuthInfo) (err error) {
return ErrInternalErrror
}
if !newAuthInfo.IsUserEmpty() {
globals.SugarLogger.Debugf("AddAuthBind user:33333333333333333333333 %v",)
return ErrAuthTypeAlreadyExist
}
RemoveUserInfo(newAuthInfo.Token)
@@ -340,6 +341,7 @@ func AddAuthBind(user IUser, newAuthInfo *AuthInfo) (err error) {
globals.SugarLogger.Debugf("AddAuthBind user:2222222222222222222222222 %v", utils.Format4Output(newAuthInfo.AuthBindInfo,true))
err = handler.AddAuthBind(newAuthInfo.AuthBindInfo, user.GetName())
} else {
globals.SugarLogger.Debugf("AddAuthBind user:444444444444444444444444", )
err = ErrIllegalAuthType
}
}