Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/context/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -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" {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this change makes works the problem in #5482

if !ctx.User.MustChangePassword {
ctx.Redirect(setting.AppSubURL + "/")
}
Expand Down