summaryrefslogtreecommitdiffstats
path: root/models/oauth2.go
diff options
context:
space:
mode:
authorskyblue <ssx205@gmail.com>2014-04-10 00:07:57 +0800
committerskyblue <ssx205@gmail.com>2014-04-10 00:07:57 +0800
commit8683d2f8570fedad694d0610074296a1452d3942 (patch)
tree200d29e578d84bd441114a3efa1317dbea7923fc /models/oauth2.go
parentc72e1b5c2ac8d2cbd123f3f53db7b4a125045725 (diff)
downloadgitea-8683d2f8570fedad694d0610074296a1452d3942.tar.gz
gitea-8683d2f8570fedad694d0610074296a1452d3942.zip
remove martini oauth2 depend
Diffstat (limited to 'models/oauth2.go')
-rw-r--r--models/oauth2.go4
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..