remove martini oauth2 depend
This commit is contained in:
parent
c72e1b5c2a
commit
8683d2f857
4 changed files with 61 additions and 22 deletions
|
@ -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..
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue