We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b72c00 commit 5e7dee0Copy full SHA for 5e7dee0
modules/context/auth.go
@@ -42,7 +42,7 @@ func Toggle(options *ToggleOptions) macaron.Handler {
42
// prevent infinite redirection
43
// also make sure that the form cannot be accessed by
44
// users who don't need this
45
- if ctx.Req.URL.Path == setting.AppSubURL+"/user/settings/change_password" {
+ if ctx.Req.URL.Path == "/user/settings/change_password" {
46
if !ctx.User.MustChangePassword {
47
ctx.Redirect(setting.AppSubURL + "/")
48
}
0 commit comments