diff options
author | David Schneiderbauer <daviian@users.noreply.github.com> | 2018-06-15 05:42:46 +0200 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2018-06-15 11:42:46 +0800 |
commit | adba2ad609ca3f1612463a4ac6af22fd30b9e75f (patch) | |
tree | 8290255dcae15d54ada4c8d16c9209adb09e3ddf /modules/context/auth.go | |
parent | 6efdcaed86565c91a3dc77631372a9cc45a58e89 (diff) | |
download | gitea-adba2ad609ca3f1612463a4ac6af22fd30b9e75f.tar.gz gitea-adba2ad609ca3f1612463a4ac6af22fd30b9e75f.zip |
fix not respecting landing page setting (#4209)
* fix not respecting landing page setting
* fmt
* add landing page test
Diffstat (limited to 'modules/context/auth.go')
-rw-r--r-- | modules/context/auth.go | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/modules/context/auth.go b/modules/context/auth.go index 372bcb187a..c38cc3948d 100644 --- a/modules/context/auth.go +++ b/modules/context/auth.go @@ -37,12 +37,6 @@ func Toggle(options *ToggleOptions) macaron.Handler { return } - // Check non-logged users landing page. - if !ctx.IsSigned && ctx.Req.RequestURI == "/" && setting.LandingPageURL != setting.LandingPageHome { - ctx.Redirect(setting.AppSubURL + string(setting.LandingPageURL)) - return - } - // Redirect to dashboard if user tries to visit any non-login page. if options.SignOutRequired && ctx.IsSigned && ctx.Req.RequestURI != "/" { ctx.Redirect(setting.AppSubURL + "/") |