- IAuther.UnbindAuth的接口改为userID

This commit is contained in:
gazebo
2019-08-13 11:02:14 +08:00
parent 37b931abe5
commit d59ca265c4
4 changed files with 8 additions and 8 deletions

View File

@@ -248,7 +248,7 @@ func (c *Auth2Controller) RemoveAuthBind() {
c.callRemoveAuthBind(func(params *tAuth2RemoveAuthBindParams) (retVal interface{}, errCode string, err error) {
authInfo, err2 := params.Ctx.GetV2AuthInfo()
if err = err2; err == nil {
err = auth2.UnbindAuth(authInfo, params.AuthType)
err = auth2.UnbindAuth(authInfo.GetID(), params.AuthType, params.Ctx.GetUserName())
}
return retVal, "", err
})