mirror of
https://github.com/go-gitea/gitea
synced 2025-07-14 22:47:21 +00:00
Batch of mirror fixes
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user