diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-11-21 13:10:00 -0500 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-11-21 13:10:00 -0500 |
commit | 8ea7ba3afa686303f6597f6244bd9280f0b69a23 (patch) | |
tree | e8149eea899d02682519fa2855b72321ef3eeace /models/user.go | |
parent | ef275ebf62608b1bd2c7e48862e723cd822d93c2 (diff) | |
download | gitea-8ea7ba3afa686303f6597f6244bd9280f0b69a23.tar.gz gitea-8ea7ba3afa686303f6597f6244bd9280f0b69a23.zip |
fix #644
Diffstat (limited to 'models/user.go')
-rw-r--r-- | models/user.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/user.go b/models/user.go index c68ae31067..b0cc2ae156 100644 --- a/models/user.go +++ b/models/user.go @@ -53,12 +53,12 @@ type User struct { LowerName string `xorm:"UNIQUE NOT NULL"` Name string `xorm:"UNIQUE NOT NULL"` FullName string - Email string `xorm:"UNIQUE NOT NULL"` + Email string `xorm:"UNIQUE(s) NOT NULL"` Passwd string `xorm:"NOT NULL"` LoginType LoginType LoginSource int64 `xorm:"NOT NULL DEFAULT 0"` LoginName string - Type UserType + Type UserType `xorm:"UNIQUE(s)"` Orgs []*User `xorm:"-"` Repos []*Repository `xorm:"-"` Location string |