diff options
Diffstat (limited to 'models/oauth2.go')
-rw-r--r-- | models/oauth2.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/models/oauth2.go b/models/oauth2.go index 97ba519c57..61044d6882 100644 --- a/models/oauth2.go +++ b/models/oauth2.go @@ -80,3 +80,9 @@ func DeleteOauth2ById(id int64) error { _, err := orm.Delete(&Oauth2{Id: id}) return err } + +// CleanUnbindOauth deletes all unbind OAuthes. +func CleanUnbindOauth() error { + _, err := orm.Delete(&Oauth2{Uid: -1}) + return err +} |