forked from forgejo/forgejo
Batch of mirror fixes
This commit is contained in:
parent
e573855a4f
commit
7cb5a15c9b
12 changed files with 120 additions and 20 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue