summaryrefslogtreecommitdiffstats
path: root/modules/context/auth.go
diff options
context:
space:
mode:
authorxdch47 <34678034+xdch47@users.noreply.github.com>2019-02-17 06:44:25 +0100
committerLunny Xiao <xiaolunwen@gmail.com>2019-02-17 13:44:25 +0800
commit5e7dee0db5dedda425158117d5dd9a6d9e8e6091 (patch)
tree75e6d21d3c05b9fe65480b6ef8c2a86ae2f8b8a6 /modules/context/auth.go
parent0b72c00fadcacda920893c991cd858a3d6dd52c7 (diff)
downloadgitea-5e7dee0db5dedda425158117d5dd9a6d9e8e6091.tar.gz
gitea-5e7dee0db5dedda425158117d5dd9a6d9e8e6091.zip
modules/context/auth.go: fix redirect loop (#5965)
Closes #5815
Diffstat (limited to 'modules/context/auth.go')
-rw-r--r--modules/context/auth.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/context/auth.go b/modules/context/auth.go
index 110122cb66..5bc34b55af 100644
--- a/modules/context/auth.go
+++ b/modules/context/auth.go
@@ -42,7 +42,7 @@ func Toggle(options *ToggleOptions) macaron.Handler {
// prevent infinite redirection
// also make sure that the form cannot be accessed by
// users who don't need this
- if ctx.Req.URL.Path == setting.AppSubURL+"/user/settings/change_password" {
+ if ctx.Req.URL.Path == "/user/settings/change_password" {
if !ctx.User.MustChangePassword {
ctx.Redirect(setting.AppSubURL + "/")
}