From 161f7a8de29892d721cdb5f40197ae0dc4583503 Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Sun, 16 Jun 2019 17:38:34 -0400 Subject: [PATCH] Support changing landing conf val from Admin UI Closes T651 --- admin.go | 1 + templates/user/admin.tmpl | 2 ++ 2 files changed, 3 insertions(+) diff --git a/admin.go b/admin.go index 696d4eb..7d21abd 100644 --- a/admin.go +++ b/admin.go @@ -350,6 +350,7 @@ func handleAdminUpdateSite(app *App, u *User, w http.ResponseWriter, r *http.Req func handleAdminUpdateConfig(apper Apper, u *User, w http.ResponseWriter, r *http.Request) error { apper.App().cfg.App.SiteName = r.FormValue("site_name") apper.App().cfg.App.SiteDesc = r.FormValue("site_desc") + apper.App().cfg.App.Landing = r.FormValue("landing") apper.App().cfg.App.OpenRegistration = r.FormValue("open_registration") == "on" mul, err := strconv.Atoi(r.FormValue("min_username_len")) if err == nil { diff --git a/templates/user/admin.tmpl b/templates/user/admin.tmpl index 5ce11a2..90b5d70 100644 --- a/templates/user/admin.tmpl +++ b/templates/user/admin.tmpl @@ -71,6 +71,8 @@ p.docs {
{{.Config.Host}}
User Mode
{{if .Config.SingleUser}}Single user{{else}}Multiple users{{end}}
+