summaryrefslogtreecommitdiffstats
path: root/modules/auth
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-10-29 21:12:41 -0400
committerUnknwon <u@gogs.io>2015-10-29 21:12:41 -0400
commit073da3c49dce52eb7eebe74cb96d9d726bebff05 (patch)
tree323d3388cc3acc673cd8b08bd03816101e89efae /modules/auth
parent0fe6fe663e05a282020ac2d0d7fb2245d134f7d1 (diff)
downloadgitea-073da3c49dce52eb7eebe74cb96d9d726bebff05.tar.gz
gitea-073da3c49dce52eb7eebe74cb96d9d726bebff05.zip
#470 fix max length of email
Diffstat (limited to 'modules/auth')
-rw-r--r--modules/auth/user_form.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/auth/user_form.go b/modules/auth/user_form.go
index 80af8e72d8..bc826c6915 100644
--- a/modules/auth/user_form.go
+++ b/modules/auth/user_form.go
@@ -30,7 +30,7 @@ type InstallForm struct {
SMTPHost string
SMTPFrom string
- SMTPEmail string `binding:"OmitEmpty;Email;MaxSize(50)" locale:"install.mailer_user"`
+ SMTPEmail string `binding:"OmitEmpty;Email;MaxSize(254)" locale:"install.mailer_user"`
SMTPPasswd string
RegisterConfirm bool
MailNotify bool
@@ -44,7 +44,7 @@ type InstallForm struct {
AdminName string `binding:"OmitEmpty;AlphaDashDot;MaxSize(30)" locale:"install.admin_name"`
AdminPasswd string `binding:"OmitEmpty;MaxSize(255)" locale:"install.admin_password"`
AdminConfirmPasswd string
- AdminEmail string `binding:"OmitEmpty;MinSize(3);MaxSize(50);Include(@)" locale:"install.admin_email"`
+ AdminEmail string `binding:"OmitEmpty;MinSize(3);MaxSize(254);Include(@)" locale:"install.admin_email"`
}
func (f *InstallForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {