diff options
author | Unknwon <u@gogs.io> | 2015-07-09 13:17:48 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-07-09 13:17:48 +0800 |
commit | b9dc2147b43667d39fd6e61027e84c51aad6485c (patch) | |
tree | d2824182fc93fa31f46344eb97856d1e7612ea53 /modules/auth/user_form.go | |
parent | 5cf37323396fa08e8f93baa6f19ad3b1a6371324 (diff) | |
download | gitea-b9dc2147b43667d39fd6e61027e84c51aad6485c.tar.gz gitea-b9dc2147b43667d39fd6e61027e84c51aad6485c.zip |
UI: install - done
Diffstat (limited to 'modules/auth/user_form.go')
-rw-r--r-- | modules/auth/user_form.go | 42 |
1 files changed, 25 insertions, 17 deletions
diff --git a/modules/auth/user_form.go b/modules/auth/user_form.go index 97865bf537..05ef1a0e6b 100644 --- a/modules/auth/user_form.go +++ b/modules/auth/user_form.go @@ -12,23 +12,31 @@ import ( ) type InstallForm struct { - DbType string `binding:"Required"` - DbHost string - DbUser string - DbPasswd string - DbName string - SSLMode string `form:"ssl_mode"` - DbPath string - RepoRootPath string `binding:"Required"` - RunUser string `binding:"Required"` - Domain string `binding:"Required"` - HTTPPort string `form:"http_port" binding:"Required"` - AppUrl string `binding:"Required"` - 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 + DbType string `binding:"Required"` + DbHost string + DbUser string + DbPasswd string + DbName string + SSLMode string `form:"ssl_mode"` + DbPath string + + AppName string `binding:"Required" locale:"install.app_name"` + RepoRootPath string `binding:"Required"` + RunUser string `binding:"Required"` + Domain string `binding:"Required"` + HTTPPort string `form:"http_port" binding:"Required"` + AppUrl string `binding:"Required"` + + 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 + + OfflineMode bool + DisableRegistration bool + RequireSignInView 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 |