mirror of
https://github.com/redmine/redmine.git
synced 2025-11-05 04:45:57 +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:
@@ -599,6 +599,7 @@ class MyControllerTest < Redmine::ControllerTest
|
||||
def test_change_password
|
||||
get :password
|
||||
assert_response :success
|
||||
assert_includes @response.headers['Cache-Control'], 'no-store'
|
||||
assert_select 'input[type=password][name=password][autocomplete=current-password]'
|
||||
assert_select 'input[type=password][name=new_password][autocomplete=new-password]'
|
||||
assert_select 'input[type=password][name=new_password_confirmation][autocomplete=new-password]'
|
||||
|
||||
Reference in New Issue
Block a user