ソースを参照

modules/context/auth.go: fix redirect loop (#5965)

Closes #5815
tags/v1.9.0-dev
xdch47 5年前
コミット
5e7dee0db5
1個のファイルの変更1行の追加1行の削除
  1. 1
    1
      modules/context/auth.go

+ 1
- 1
modules/context/auth.go ファイルの表示

@@ -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 + "/")
}

読み込み中…
キャンセル
保存