diff options
author | Unknwon <u@gogs.io> | 2015-07-08 19:47:56 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-07-08 19:47:56 +0800 |
commit | 5cf37323396fa08e8f93baa6f19ad3b1a6371324 (patch) | |
tree | 5b65039ae359f52bbc8b0e4abf1924c4c187d9c5 /modules/auth/user_form.go | |
parent | 5dd3dd71a0529590a209c0e58e0a962b83515ae8 (diff) | |
download | gitea-5cf37323396fa08e8f93baa6f19ad3b1a6371324.tar.gz gitea-5cf37323396fa08e8f93baa6f19ad3b1a6371324.zip |
UI: install - new version
Diffstat (limited to 'modules/auth/user_form.go')
-rw-r--r-- | modules/auth/user_form.go | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/modules/auth/user_form.go b/modules/auth/user_form.go index b616a460ff..97865bf537 100644 --- a/modules/auth/user_form.go +++ b/modules/auth/user_form.go @@ -17,22 +17,22 @@ type InstallForm struct { DbUser string DbPasswd string DbName string - SSLMode string + SSLMode string `form:"ssl_mode"` DbPath string RepoRootPath string `binding:"Required"` RunUser string `binding:"Required"` Domain string `binding:"Required"` - HTTPPort string `binding:"Required"` + HTTPPort string `form:"http_port" binding:"Required"` AppUrl string `binding:"Required"` - SMTPHost string - SMTPEmail string - SMTPPasswd string - RegisterConfirm string - MailNotify string - AdminName string `binding:"Required;AlphaDashDot;MaxSize(30)"` - AdminPasswd string `binding:"Required;MinSize(6);MaxSize(255)"` - AdminConfirmPasswd string `binding:"Required;MinSize(6);MaxSize(255)"` - AdminEmail string `binding:"Required;Email;MaxSize(50)"` + SMTPHost string `form:"smtp_host"` + SMTPEmail string `form:"smtp_user" binding:"OmitEmpty;Email;MaxSize(50)" locale:"install.mailer_user"` + SMTPPasswd string `form:"smtp_passwd"` + RegisterConfirm bool + MailNotify bool + AdminName string `binding:"OmitEmpty;AlphaDashDot;MaxSize(30)" locale:"install.admin_name"` + AdminPasswd string `binding:"OmitEmpty;MinSize(6);MaxSize(255)" locale:"install.admin_password"` + AdminConfirmPasswd string + AdminEmail string `binding:"OmitEmpty;Email;MaxSize(50)" locale:"install.admin_email"` } func (f *InstallForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors { |