From 0ea3db1c171900c05da012fc74871973d0e587ca Mon Sep 17 00:00:00 2001 From: Andrew Rice Date: Tue, 22 Aug 2017 14:05:56 +0100 Subject: [PATCH] Add option to send the user to a login box for the landing page --- pkg/setting/setting.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/setting/setting.go b/pkg/setting/setting.go index f206592d3..be1be202f 100644 --- a/pkg/setting/setting.go +++ b/pkg/setting/setting.go @@ -46,6 +46,7 @@ type LandingPage string const ( LANDING_PAGE_HOME LandingPage = "/" LANDING_PAGE_EXPLORE LandingPage = "/explore" + LANDING_PAGE_LOGIN LandingPage = "/user/login" ) var ( @@ -481,6 +482,8 @@ func NewContext() { switch sec.Key("LANDING_PAGE").MustString("home") { case "explore": LandingPageURL = LANDING_PAGE_EXPLORE + case "login": + LandingPageURL = LANDING_PAGE_LOGIN default: LandingPageURL = LANDING_PAGE_HOME }