try add oidc

This commit is contained in:
Tao Chen committed 2024-10-29 11:51:01 +08:00
1 parent 4baa8d392e
commit 4105f14a3f
8 files changed
+263 -27

No files matched your search

+7
View File
@@ -140,6 +140,13 @@ func (o *Oauth) Unbind(c *gin.Context) {
return
}
}
if f.Op == model.OauthTypeOidc {
err = service.AllService.OauthService.UnBindOidcUser(u.Id)
if err != nil {
response.Fail(c, 101, response.TranslateMsg(c, "OperationFailed")+err.Error())
return
}
}
response.Success(c, nil)
}