diff options
author | puffybsd <puffybsd@yahoo.com> | 2017-02-23 20:37:13 -0500 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-02-24 09:37:13 +0800 |
commit | 8de8e11487ebd729d026c8a71adfa9ea6b926a69 (patch) | |
tree | c64dd54ac9a2d0c81551865b8d0c7af2448aaa26 /modules | |
parent | 832477b1bceb003ce12529c7797a53e80c936d58 (diff) | |
download | gitea-8de8e11487ebd729d026c8a71adfa9ea6b926a69.tar.gz gitea-8de8e11487ebd729d026c8a71adfa9ea6b926a69.zip |
Fixes 1019, install page SMTP user is required to (#1020)
to be an email address.
Signed-off-by: P.B. <puffybsd@yahoo.com>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/auth/user_form.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/auth/user_form.go b/modules/auth/user_form.go index 0750d2219c..32c18872f3 100644 --- a/modules/auth/user_form.go +++ b/modules/auth/user_form.go @@ -33,7 +33,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 |