Skip to content

Commit 5e7dee0

Browse files
xdch47lunny
authored andcommitted
modules/context/auth.go: fix redirect loop (#5965)
Closes #5815
1 parent 0b72c00 commit 5e7dee0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/context/auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func Toggle(options *ToggleOptions) macaron.Handler {
4242
// prevent infinite redirection
4343
// also make sure that the form cannot be accessed by
4444
// users who don't need this
45-
if ctx.Req.URL.Path == setting.AppSubURL+"/user/settings/change_password" {
45+
if ctx.Req.URL.Path == "/user/settings/change_password" {
4646
if !ctx.User.MustChangePassword {
4747
ctx.Redirect(setting.AppSubURL + "/")
4848
}

0 commit comments

Comments
 (0)