#1579 change e-mail max length to 254

This commit is contained in:
Unknwon 2015-09-04 10:59:34 -04:00
parent d023e81a8f
commit 07fe846c9f
4 changed files with 8 additions and 7 deletions

View file

@ -12,7 +12,7 @@ import (
type AdminEditUserForm struct {
FullName string `form:"fullname" binding:"MaxSize(100)"`
Email string `binding:"Required;Email;MaxSize(50)"`
Email string `binding:"Required;Email;MaxSize(254)"`
Password string `binding:"OmitEmpty;MinSize(6);MaxSize(255)"`
Website string `binding:"MaxSize(50)"`
Location string `binding:"MaxSize(50)"`