diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-03 19:03:08 -0500 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-03 19:03:08 -0500 |
commit | e59f90b8fee3e615d1b60067bfc0d636606899d8 (patch) | |
tree | e37db19d1492235875259f34ed08506f74631270 /models | |
parent | fea660f1d787f353f06632982861000c9078da2e (diff) | |
download | gitea-e59f90b8fee3e615d1b60067bfc0d636606899d8.tar.gz gitea-e59f90b8fee3e615d1b60067bfc0d636606899d8.zip |
Update
Diffstat (limited to 'models')
-rw-r--r-- | models/user.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/user.go b/models/user.go index 086b02c82f..820597380d 100644 --- a/models/user.go +++ b/models/user.go @@ -34,7 +34,7 @@ const ( type User struct { Id int64 LowerName string `xorm:"unique not null"` - Name string `xorm:"unique not null" valid:"Required"` + Name string `xorm:"unique not null" valid:"AlphaDash;MinSize(5);MaxSize(30)"` Email string `xorm:"unique not null" valid:"Email"` Passwd string `xorm:"not null" valid:"MinSize(8)"` LoginType int |