1
0
Fork 0
forked from forgejo/forgejo

Add weibo oauth

This commit is contained in:
Unknown 2014-04-13 21:00:12 -04:00
parent 4b9b8024ba
commit d2b53dd43b
20 changed files with 198 additions and 21 deletions

View file

@ -68,3 +68,9 @@ func GetOauth2ById(id int64) (oa *Oauth2, err error) {
}
return oa, nil
}
// GetOauthByUserId returns list of oauthes that are releated to given user.
func GetOauthByUserId(uid int64) (oas []*Oauth2, err error) {
err = orm.Find(&oas, Oauth2{Uid: uid})
return oas, err
}