diff --git a/routers/web/web.go b/routers/web/web.go index 220c75d162b..b1dfec9aea7 100644 --- a/routers/web/web.go +++ b/routers/web/web.go @@ -200,7 +200,6 @@ func verifyAuthWithOptionsWeb(options *common.VerifyOptions) func(ctx *context.C ctx.HTTPError(http.StatusUnauthorized, ctx.Locale.TrString("auth.must_change_password")) return } - middleware.SetRedirectToCookie(ctx.Resp, setting.AppSubURL+ctx.Req.URL.RequestURI()) ctx.Redirect(setting.AppSubURL + "/user/settings/change_password") return } diff --git a/templates/base/head_navbar.tmpl b/templates/base/head_navbar.tmpl index 9cdfb5efaef..3e9e171b777 100644 --- a/templates/base/head_navbar.tmpl +++ b/templates/base/head_navbar.tmpl @@ -39,8 +39,8 @@