Skip to content

Commit 01bb3ad

Browse files
committed
modules/context/auth.go: fix redirect loop (go-gitea#5965)
Closes go-gitea#5815
1 parent fe99c99 commit 01bb3ad

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)