aboutsummaryrefslogtreecommitdiff
path: root/modules/auth/user_form.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-02-12 18:35:25 -0500
committerUnknwon <u@gogs.io>2017-02-12 18:35:25 -0500
commitf59a607361ff3c21a49f3e0735c17dcceacbd3df (patch)
tree23c10d682417147853cb11440290944152b364d5 /modules/auth/user_form.go
parentd21767dc9f3d6fe400982534dfdf81a34088e44c (diff)
install: allow sender's username to be non-email (#3717)
Diffstat (limited to 'modules/auth/user_form.go')
-rw-r--r--modules/auth/user_form.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/auth/user_form.go b/modules/auth/user_form.go
index 7bd6c7b9..7307320d 100644
--- a/modules/auth/user_form.go
+++ b/modules/auth/user_form.go
@@ -31,7 +31,7 @@ type InstallForm struct {
SMTPHost string
SMTPFrom string
- SMTPEmail string `binding:"OmitEmpty;Email;MaxSize(254)" locale:"install.mailer_user"`
+ SMTPUser string `binding:"OmitEmpty;MaxSize(254)" locale:"install.mailer_user"`
SMTPPasswd string
RegisterConfirm bool
MailNotify bool