mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-14 01:35:55 +09:00
1 parent
0b72c00fad
commit
5e7dee0db5
1 file changed
+1
-1
@@ -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 + "/")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user