diff options
author | skyblue <ssx205@gmail.com> | 2014-04-10 00:07:57 +0800 |
---|---|---|
committer | skyblue <ssx205@gmail.com> | 2014-04-10 00:07:57 +0800 |
commit | 8683d2f8570fedad694d0610074296a1452d3942 (patch) | |
tree | 200d29e578d84bd441114a3efa1317dbea7923fc /models | |
parent | c72e1b5c2ac8d2cbd123f3f53db7b4a125045725 (diff) | |
download | gitea-8683d2f8570fedad694d0610074296a1452d3942.tar.gz gitea-8683d2f8570fedad694d0610074296a1452d3942.zip |
remove martini oauth2 depend
Diffstat (limited to 'models')
-rw-r--r-- | models/oauth2.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/oauth2.go b/models/oauth2.go index 4da9800670..9a38334e64 100644 --- a/models/oauth2.go +++ b/models/oauth2.go @@ -15,8 +15,8 @@ var ( ) type Oauth2 struct { - Id int64 - Uid int64 `xorm:"pk"` // userId + Id int64 `xorm:"default 1"` + Uid int64 `xorm:"pk"` // UserId User *User `xorm:"-"` Type int `xorm:"pk unique(oauth)"` // twitter,github,google... Identity string `xorm:"pk unique(oauth)"` // id.. |