mirror of
https://github.com/redmine/redmine.git
synced 2025-10-26 07:46:17 +01:00
Adds @Cache-Control: no-store@ header to login, lost password, change password and sudo pages (#42998).
Patch by Go MAEDA (user:maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@23908 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -124,6 +124,7 @@ module Redmine
|
||||
@sudo_form.original_fields = params.slice(*param_names)
|
||||
# a simple 'render "sudo_mode/new"' works when used directly inside an
|
||||
# action, but not when called from a before_action:
|
||||
no_store
|
||||
respond_to do |format|
|
||||
format.html {render 'sudo_mode/new'}
|
||||
format.js {render 'sudo_mode/new'}
|
||||
|
||||
Reference in New Issue
Block a user