From 7cb5a15c9b7a2a118d756d15cb745743f207a318 Mon Sep 17 00:00:00 2001 From: Unknown <joe2010xtmf@163.com> Date: Tue, 6 May 2014 13:47:47 -0400 Subject: Batch of mirror fixes --- models/oauth2.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'models/oauth2.go') diff --git a/models/oauth2.go b/models/oauth2.go index 97ba519c..61044d68 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 +} -- cgit v1.2.3