aboutsummaryrefslogtreecommitdiff
path: root/modules/auth
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-04-27 01:54:08 -0600
committerUnknown <joe2010xtmf@163.com>2014-04-27 01:54:08 -0600
commit62240b6bc12abfe257224bb554a75a5712803059 (patch)
treec5ab69fca3503972a4cad5f0ed9181d94ab67908 /modules/auth
parentce05a8d7b6939b4f67a8e779bcc784d1b8ef8fab (diff)
Add login by email
Diffstat (limited to 'modules/auth')
-rw-r--r--modules/auth/auth.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/auth/auth.go b/modules/auth/auth.go
index 350ef4fc..e493faef 100644
--- a/modules/auth/auth.go
+++ b/modules/auth/auth.go
@@ -57,7 +57,7 @@ func (f *RegisterForm) Validate(errors *base.BindingErrors, req *http.Request, c
}
type LogInForm struct {
- UserName string `form:"username" binding:"Required;AlphaDash;MaxSize(30)"`
+ UserName string `form:"username" binding:"Required;MaxSize(35)"`
Password string `form:"passwd" binding:"Required;MinSize(6);MaxSize(30)"`
Remember string `form:"remember"`
}