diff options
author | Unknown <joe2010xtmf@163.com> | 2014-05-01 07:59:09 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-05-01 07:59:09 -0400 |
commit | d0ea4c7b686a200af3eca3847909b515c40539ee (patch) | |
tree | a4fd1a4b4655604242eca745cd873f434ff120d7 /modules/auth/auth.go | |
parent | 2a1dc0085b9f7236082f3885fa594ec12d5b0211 (diff) | |
download | gitea-d0ea4c7b686a200af3eca3847909b515c40539ee.tar.gz gitea-d0ea4c7b686a200af3eca3847909b515c40539ee.zip |
Fix #149
Diffstat (limited to 'modules/auth/auth.go')
-rw-r--r-- | modules/auth/auth.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/auth/auth.go b/modules/auth/auth.go index 85df42d8c4..96e3868ff6 100644 --- a/modules/auth/auth.go +++ b/modules/auth/auth.go @@ -176,7 +176,7 @@ type InstallForm struct { RunUser string `form:"run_user"` Domain string `form:"domain"` AppUrl string `form:"app_url"` - AdminName string `form:"admin_name" binding:"Required"` + AdminName string `form:"admin_name" binding:"Required;AlphaDashDot;MaxSize(30)"` AdminPasswd string `form:"admin_pwd" binding:"Required;MinSize(6);MaxSize(30)"` AdminEmail string `form:"admin_email" binding:"Required;Email;MaxSize(50)"` SmtpHost string `form:"smtp_host"` |