summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Frye <joshfng@gmail.com>2016-02-12 10:10:02 -0500
committerJosh Frye <joshfng@gmail.com>2016-02-12 10:10:02 -0500
commit8ab5399e830c425e611e5b24ef2edefefa587455 (patch)
treea1cf52e58f72d0ffe44f2a7b370777de5fd15463
parentec478b4b063e767eaf804216d2273d6e1f48d882 (diff)
downloadgitea-8ab5399e830c425e611e5b24ef2edefefa587455.tar.gz
gitea-8ab5399e830c425e611e5b24ef2edefefa587455.zip
Make log path required
-rw-r--r--modules/auth/user_form.go2
-rw-r--r--templates/install.tmpl4
2 files changed, 3 insertions, 3 deletions
diff --git a/modules/auth/user_form.go b/modules/auth/user_form.go
index 0e863ec91f..57451d9eb6 100644
--- a/modules/auth/user_form.go
+++ b/modules/auth/user_form.go
@@ -27,7 +27,7 @@ type InstallForm struct {
SSHPort int
HTTPPort string `binding:"Required"`
AppUrl string `binding:"Required"`
- LogRootPath string
+ LogRootPath string `binding:"Required"`
SMTPHost string
SMTPFrom string
diff --git a/templates/install.tmpl b/templates/install.tmpl
index 1d97abf528..b3d4d7339d 100644
--- a/templates/install.tmpl
+++ b/templates/install.tmpl
@@ -109,9 +109,9 @@
<input id="app_url" name="app_url" value="{{.app_url}}" placeholder="e.g. https://try.gogs.io" required>
<span class="help">{{.i18n.Tr "install.app_url_helper"}}</span>
</div>
- <div class="inline field">
+ <div class="inline required field">
<label for="log_root_path">{{.i18n.Tr "install.log_root_path"}}</label>
- <input id="log_root_path" name="log_root_path" value="{{.log_root_path}}" placeholder="log">
+ <input id="log_root_path" name="log_root_path" value="{{.log_root_path}}" placeholder="log" required>
<span class="help">{{.i18n.Tr "install.log_root_path_helper"}}</span>
</div>