Add login by email

This commit is contained in:
Unknown 2014-04-27 01:54:08 -06:00
parent ce05a8d7b6
commit 62240b6bc1
4 changed files with 14 additions and 29 deletions

View file

@ -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"`
}