From 66021a5be2dd8af1ff40495844be8eabf8d74252 Mon Sep 17 00:00:00 2001 From: Marius Balteanu Date: Sun, 7 Sep 2025 06:20:12 +0000 Subject: [PATCH] Reverts r23943 due to wrong commit message (#42998). git-svn-id: https://svn.redmine.org/redmine/trunk@23946 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/account_controller.rb | 2 -- test/functional/account_controller_test.rb | 22 ---------------------- 2 files changed, 24 deletions(-) diff --git a/app/controllers/account_controller.rb b/app/controllers/account_controller.rb index c300457b5..ea75d5de1 100644 --- a/app/controllers/account_controller.rb +++ b/app/controllers/account_controller.rb @@ -171,8 +171,6 @@ class AccountController < ApplicationController end end end - - no_store end # Token based account activation diff --git a/test/functional/account_controller_test.rb b/test/functional/account_controller_test.rb index 911888cbf..1dd14a24a 100644 --- a/test/functional/account_controller_test.rb +++ b/test/functional/account_controller_test.rb @@ -289,7 +289,6 @@ class AccountControllerTest < Redmine::ControllerTest with_settings :self_registration => '3' do get :register assert_response :success - assert_includes @response.headers['Cache-Control'], 'no-store' assert_select 'input[name=?]', 'user[password]' assert_select 'input[name=?]', 'user[password_confirmation]' @@ -356,27 +355,6 @@ class AccountControllerTest < Redmine::ControllerTest end end - def test_post_register_with_failure - post( - :register, - :params => { - :user => { - :login => 'register', - :password => 'secret123', - :password_confirmation => 'secret1234567890', - :firstname => 'John', - :lastname => 'Doe', - :mail => 'register@example.com' - } - } - ) - - assert_response :success - assert_includes @response.headers['Cache-Control'], 'no-store' - - assert_select_error /Password doesn't match confirmation/i - end - def test_post_register_with_registration_off_should_redirect with_settings :self_registration => '0' do assert_no_difference 'User.count' do