diff --git a/Gemfile b/Gemfile index 51b974ddc06..1933f5df2fe 100644 --- a/Gemfile +++ b/Gemfile @@ -3,7 +3,7 @@ git_source(:github) { |repo_name| "https://github.com/#{repo_name}.git" } ruby "~> #{File.read('.ruby-version').strip}" -gem 'rails', '~> 6.1.6.1' +gem 'rails', '~> 7.0.0' gem 'ahoy_matey', '~> 3.0' gem 'aws-sdk-kms', '~> 1.4' @@ -26,7 +26,7 @@ gem 'foundation_emails' gem 'good_job', '~> 2.99.0' gem 'hashie', '~> 4.1' gem 'http_accept_language' -gem 'identity-hostdata', github: '18F/identity-hostdata', tag: 'v3.4.0' +gem 'identity-hostdata', github: '18F/identity-hostdata', tag: 'v3.4.1' gem 'identity-logging', github: '18F/identity-logging', tag: 'v0.1.0' gem 'identity_validations', github: '18F/identity-validations', tag: 'v0.7.2' gem 'jsbundling-rails', '~> 1.0.0' @@ -60,6 +60,7 @@ gem 'safe_target_blank', '>= 1.0.2' gem 'saml_idp', github: '18F/saml_idp', tag: '0.17.0-18f' gem 'scrypt' gem 'simple_form', '>= 5.0.2' +gem 'sprockets-rails' gem 'stringex', require: false gem 'strong_migrations', '>= 0.4.2' gem 'subprocess', require: false @@ -89,7 +90,7 @@ end group :development, :test do gem 'aws-sdk-cloudwatchlogs', require: false gem 'brakeman', require: false - gem 'bullet', '>= 6.0.2' + gem 'bullet', '~> 7.0' gem 'capybara-webmock', git: 'https://github.com/hashrocket/capybara-webmock.git', ref: '63d790a0' gem 'data_uri', require: false gem 'erb_lint', '~> 0.1.0', require: false @@ -103,7 +104,7 @@ group :development, :test do gem 'pry-rails' gem 'psych' gem 'puma' - gem 'rspec-rails', '~> 4.0' + gem 'rspec-rails', '6.0.0.rc1' gem 'rubocop', '~> 1.29.1', require: false gem 'rubocop-performance', '~> 1.12.0', require: false gem 'rubocop-rails', '>= 2.5.2', require: false @@ -117,7 +118,7 @@ group :test do gem 'simplecov-cobertura' gem 'simplecov_json_formatter' gem 'email_spec' - gem 'factory_bot_rails', '>= 5.2.0' + gem 'factory_bot_rails', '>= 6.2.0' gem 'faker' gem 'rack_session_access', '>= 0.2.0' gem 'rack-test', '>= 1.1.0' diff --git a/Gemfile.lock b/Gemfile.lock index 42b8d6df000..bc44ebe8851 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,10 +1,10 @@ GIT remote: https://github.com/18F/identity-hostdata.git - revision: c69cca28c5e9dd35c66c1bfbdb5c2218b560e14b - tag: v3.4.0 + revision: 25a7e98919b1eb0d61dbcce314807a412aff62ad + tag: v3.4.1 specs: - identity-hostdata (3.4.0) - activesupport (~> 6.1) + identity-hostdata (3.4.1) + activesupport (>= 6.1, < 8) aws-sdk-s3 (~> 1.8) GIT @@ -52,65 +52,71 @@ GIT GEM remote: https://rubygems.org/ specs: - actioncable (6.1.6.1) - actionpack (= 6.1.6.1) - activesupport (= 6.1.6.1) + actioncable (7.0.3.1) + actionpack (= 7.0.3.1) + activesupport (= 7.0.3.1) nio4r (~> 2.0) websocket-driver (>= 0.6.1) - actionmailbox (6.1.6.1) - actionpack (= 6.1.6.1) - activejob (= 6.1.6.1) - activerecord (= 6.1.6.1) - activestorage (= 6.1.6.1) - activesupport (= 6.1.6.1) + actionmailbox (7.0.3.1) + actionpack (= 7.0.3.1) + activejob (= 7.0.3.1) + activerecord (= 7.0.3.1) + activestorage (= 7.0.3.1) + activesupport (= 7.0.3.1) mail (>= 2.7.1) - actionmailer (6.1.6.1) - actionpack (= 6.1.6.1) - actionview (= 6.1.6.1) - activejob (= 6.1.6.1) - activesupport (= 6.1.6.1) + net-imap + net-pop + net-smtp + actionmailer (7.0.3.1) + actionpack (= 7.0.3.1) + actionview (= 7.0.3.1) + activejob (= 7.0.3.1) + activesupport (= 7.0.3.1) mail (~> 2.5, >= 2.5.4) + net-imap + net-pop + net-smtp rails-dom-testing (~> 2.0) - actionpack (6.1.6.1) - actionview (= 6.1.6.1) - activesupport (= 6.1.6.1) - rack (~> 2.0, >= 2.0.9) + actionpack (7.0.3.1) + actionview (= 7.0.3.1) + activesupport (= 7.0.3.1) + rack (~> 2.0, >= 2.2.0) rack-test (>= 0.6.3) rails-dom-testing (~> 2.0) rails-html-sanitizer (~> 1.0, >= 1.2.0) - actiontext (6.1.6.1) - actionpack (= 6.1.6.1) - activerecord (= 6.1.6.1) - activestorage (= 6.1.6.1) - activesupport (= 6.1.6.1) + actiontext (7.0.3.1) + actionpack (= 7.0.3.1) + activerecord (= 7.0.3.1) + activestorage (= 7.0.3.1) + activesupport (= 7.0.3.1) + globalid (>= 0.6.0) nokogiri (>= 1.8.5) - actionview (6.1.6.1) - activesupport (= 6.1.6.1) + actionview (7.0.3.1) + activesupport (= 7.0.3.1) builder (~> 3.1) erubi (~> 1.4) rails-dom-testing (~> 2.0) rails-html-sanitizer (~> 1.1, >= 1.2.0) - activejob (6.1.6.1) - activesupport (= 6.1.6.1) + activejob (7.0.3.1) + activesupport (= 7.0.3.1) globalid (>= 0.3.6) - activemodel (6.1.6.1) - activesupport (= 6.1.6.1) - activerecord (6.1.6.1) - activemodel (= 6.1.6.1) - activesupport (= 6.1.6.1) - activestorage (6.1.6.1) - actionpack (= 6.1.6.1) - activejob (= 6.1.6.1) - activerecord (= 6.1.6.1) - activesupport (= 6.1.6.1) + activemodel (7.0.3.1) + activesupport (= 7.0.3.1) + activerecord (7.0.3.1) + activemodel (= 7.0.3.1) + activesupport (= 7.0.3.1) + activestorage (7.0.3.1) + actionpack (= 7.0.3.1) + activejob (= 7.0.3.1) + activerecord (= 7.0.3.1) + activesupport (= 7.0.3.1) marcel (~> 1.0) mini_mime (>= 1.1.0) - activesupport (6.1.6.1) + activesupport (7.0.3.1) concurrent-ruby (~> 1.0, >= 1.0.2) i18n (>= 1.6, < 2) minitest (>= 5.1) tzinfo (~> 2.0) - zeitwerk (~> 2.3) addressable (2.8.0) public_suffix (>= 2.0.2, < 5.0) ahoy_matey (3.3.0) @@ -122,17 +128,17 @@ GEM ast (2.4.2) awrence (1.2.1) aws-eventstream (1.2.0) - aws-partitions (1.540.0) + aws-partitions (1.543.0) aws-sdk-cloudwatchlogs (1.49.0) aws-sdk-core (~> 3, >= 3.122.0) aws-sigv4 (~> 1.1) - aws-sdk-core (3.124.0) + aws-sdk-core (3.125.0) aws-eventstream (~> 1, >= 1.0.2) aws-partitions (~> 1, >= 1.525.0) aws-sigv4 (~> 1.1) jmespath (~> 1.0) - aws-sdk-kms (1.52.0) - aws-sdk-core (~> 3, >= 3.122.0) + aws-sdk-kms (1.53.0) + aws-sdk-core (~> 3, >= 3.125.0) aws-sigv4 (~> 1.1) aws-sdk-pinpoint (1.62.0) aws-sdk-core (~> 3, >= 3.122.0) @@ -140,10 +146,10 @@ GEM aws-sdk-pinpointsmsvoice (1.29.0) aws-sdk-core (~> 3, >= 3.122.0) aws-sigv4 (~> 1.1) - aws-sdk-s3 (1.87.0) - aws-sdk-core (~> 3, >= 3.109.0) + aws-sdk-s3 (1.110.0) + aws-sdk-core (~> 3, >= 3.125.0) aws-sdk-kms (~> 1) - aws-sigv4 (~> 1.1) + aws-sigv4 (~> 1.4) aws-sdk-ses (1.44.0) aws-sdk-core (~> 3, >= 3.122.0) aws-sigv4 (~> 1.1) @@ -185,18 +191,19 @@ GEM blueprinter (0.25.3) bootsnap (1.9.3) msgpack (~> 1.0) - brakeman (5.2.0) + brakeman (5.2.1) browser (5.3.1) builder (3.2.4) - bullet (6.1.5) + bullet (7.0.1) activesupport (>= 3.0.0) uniform_notifier (~> 1.11) bundler-audit (0.9.0.1) bundler (>= 1.2.0, < 3) thor (~> 1.0) byebug (11.1.3) - capybara (3.35.3) + capybara (3.36.0) addressable + matrix mini_mime (>= 0.1.3) nokogiri (~> 1.8) rack (>= 1.6.0) @@ -246,7 +253,8 @@ GEM railties (>= 4.1.0) responders warden (~> 1.2.3) - diff-lcs (1.4.4) + diff-lcs (1.5.0) + digest (3.1.0) docile (1.4.0) dotiw (5.3.2) activesupport @@ -269,7 +277,7 @@ GEM et-orbi (1.2.7) tzinfo execjs (2.8.1) - factory_bot (6.2.0) + factory_bot (6.2.1) activesupport (>= 5.0.0) factory_bot_rails (6.2.0) factory_bot (~> 6.2.0) @@ -345,7 +353,7 @@ GEM http_accept_language (2.1.1) i18n (1.12.0) concurrent-ruby (~> 1.0) - i18n-tasks (0.9.35) + i18n-tasks (0.9.37) activesupport (>= 4.0.2) ast (>= 2.1.0) erubi @@ -387,6 +395,7 @@ GEM mail (2.7.1) mini_mime (>= 0.1.1) marcel (1.0.2) + matrix (0.4.2) maxminddb (0.1.22) memory_profiler (0.9.14) method_source (1.0.0) @@ -398,8 +407,22 @@ GEM multipart-post (2.1.1) multiset (0.5.3) nenv (0.3.0) + net-imap (0.2.3) + digest + net-protocol + strscan + net-pop (0.1.1) + digest + net-protocol + timeout + net-protocol (0.1.3) + timeout net-sftp (3.0.0) net-ssh (>= 5.0.0, < 7.0.0) + net-smtp (0.3.1) + digest + net-protocol + timeout net-ssh (6.1.0) newrelic_rpm (8.8.0) nio4r (2.5.8) @@ -468,21 +491,20 @@ GEM rack_session_access (0.2.0) builder (>= 2.0.0) rack (>= 1.0.0) - rails (6.1.6.1) - actioncable (= 6.1.6.1) - actionmailbox (= 6.1.6.1) - actionmailer (= 6.1.6.1) - actionpack (= 6.1.6.1) - actiontext (= 6.1.6.1) - actionview (= 6.1.6.1) - activejob (= 6.1.6.1) - activemodel (= 6.1.6.1) - activerecord (= 6.1.6.1) - activestorage (= 6.1.6.1) - activesupport (= 6.1.6.1) + rails (7.0.3.1) + actioncable (= 7.0.3.1) + actionmailbox (= 7.0.3.1) + actionmailer (= 7.0.3.1) + actionpack (= 7.0.3.1) + actiontext (= 7.0.3.1) + actionview (= 7.0.3.1) + activejob (= 7.0.3.1) + activemodel (= 7.0.3.1) + activerecord (= 7.0.3.1) + activestorage (= 7.0.3.1) + activesupport (= 7.0.3.1) bundler (>= 1.15.0) - railties (= 6.1.6.1) - sprockets-rails (>= 2.0.0) + railties (= 7.0.3.1) rails-controller-testing (1.0.5) actionpack (>= 5.0.1.rc1) actionview (>= 5.0.1.rc1) @@ -497,15 +519,16 @@ GEM ruby-graphviz (~> 1.2) rails-html-sanitizer (1.4.3) loofah (~> 2.3) - rails-i18n (6.0.0) + rails-i18n (7.0.3) i18n (>= 0.7, < 2) - railties (>= 6.0.0, < 7) - railties (6.1.6.1) - actionpack (= 6.1.6.1) - activesupport (= 6.1.6.1) + railties (>= 6.0.0, < 8) + railties (7.0.3.1) + actionpack (= 7.0.3.1) + activesupport (= 7.0.3.1) method_source rake (>= 12.2) thor (~> 1.0) + zeitwerk (~> 2.5) rainbow (3.1.1) rake (13.0.6) rb-fsevent (0.10.4) @@ -533,29 +556,29 @@ GEM chunky_png (~> 1.0) rqrcode_core (~> 1.0) rqrcode_core (1.2.0) - rspec (3.10.0) - rspec-core (~> 3.10.0) - rspec-expectations (~> 3.10.0) - rspec-mocks (~> 3.10.0) - rspec-core (3.10.1) - rspec-support (~> 3.10.0) - rspec-expectations (3.10.1) + rspec (3.11.0) + rspec-core (~> 3.11.0) + rspec-expectations (~> 3.11.0) + rspec-mocks (~> 3.11.0) + rspec-core (3.11.0) + rspec-support (~> 3.11.0) + rspec-expectations (3.11.0) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.10.0) - rspec-mocks (3.10.2) + rspec-support (~> 3.11.0) + rspec-mocks (3.11.1) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.10.0) - rspec-rails (4.1.2) - actionpack (>= 4.2) - activesupport (>= 4.2) - railties (>= 4.2) - rspec-core (~> 3.10) - rspec-expectations (~> 3.10) - rspec-mocks (~> 3.10) - rspec-support (~> 3.10) + rspec-support (~> 3.11.0) + rspec-rails (6.0.0.rc1) + actionpack (>= 6.1) + activesupport (>= 6.1) + railties (>= 6.1) + rspec-core (~> 3.11) + rspec-expectations (~> 3.11) + rspec-mocks (~> 3.11) + rspec-support (~> 3.11) rspec-retry (0.6.2) rspec-core (> 3.3) - rspec-support (3.10.3) + rspec-support (3.11.0) rubocop (1.29.1) parallel (~> 1.10) parser (>= 3.1.0.0) @@ -616,7 +639,7 @@ GEM simpleidn (0.2.1) unf (~> 0.1.4) smart_properties (1.17.0) - sprockets (4.1.1) + sprockets (4.0.2) concurrent-ruby (~> 1.0) rack (> 1, < 3) sprockets-rails (3.4.2) @@ -624,14 +647,16 @@ GEM activesupport (>= 5.2) sprockets (>= 3.0.0) stringex (2.8.5) - strong_migrations (0.7.9) - activerecord (>= 5) + strong_migrations (0.8.0) + activerecord (>= 5.2) + strscan (3.0.1) subprocess (1.5.5) systemu (2.6.5) terminal-table (3.0.2) unicode-display_width (>= 1.1.1, < 3) thor (1.2.1) thread_safe (0.3.6) + timeout (0.3.0) tpm-key_attestation (0.10.0) bindata (~> 2.4) openssl-signature_algorithm (~> 1.0) @@ -716,7 +741,7 @@ DEPENDENCIES bootsnap (~> 1.9.0) brakeman browser - bullet (>= 6.0.2) + bullet (~> 7.0) bundler-audit capybara-selenium (>= 0.0.6) capybara-webmock! @@ -728,7 +753,7 @@ DEPENDENCIES dotiw (>= 4.0.1) email_spec erb_lint (~> 0.1.0) - factory_bot_rails (>= 5.2.0) + factory_bot_rails (>= 6.2.0) faker faraday faraday_middleware @@ -773,7 +798,7 @@ DEPENDENCIES rack-test (>= 1.1.0) rack-timeout rack_session_access (>= 0.2.0) - rails (~> 6.1.6.1) + rails (~> 7.0.0) rails-controller-testing (>= 1.0.4) rails-erd (>= 1.6.0) redacted_struct @@ -783,7 +808,7 @@ DEPENDENCIES retries rotp (~> 6.1) rqrcode - rspec-rails (~> 4.0) + rspec-rails (= 6.0.0.rc1) rspec-retry rubocop (~> 1.29.1) rubocop-performance (~> 1.12.0) @@ -798,6 +823,7 @@ DEPENDENCIES simplecov (~> 0.21.0) simplecov-cobertura simplecov_json_formatter + sprockets-rails stringex strong_migrations (>= 0.4.2) subprocess diff --git a/Makefile b/Makefile index 27bb4dcb9e8..7c451433afc 100644 --- a/Makefile +++ b/Makefile @@ -62,8 +62,6 @@ lint: ## Runs all lint tests make lint_analytics_events @echo "--- brakeman ---" bundle exec brakeman - @echo "--- zeitwerk check ---" - bin/rails zeitwerk:check @echo "--- bundler-audit ---" bundle exec bundler-audit check --update # JavaScript diff --git a/app/controllers/openid_connect/authorization_controller.rb b/app/controllers/openid_connect/authorization_controller.rb index ba2446c1dab..90202919ff2 100644 --- a/app/controllers/openid_connect/authorization_controller.rb +++ b/app/controllers/openid_connect/authorization_controller.rb @@ -66,7 +66,7 @@ def ial_context def handle_successful_handoff track_events SpHandoffBounce::AddHandoffTimeToSession.call(sp_session) - redirect_to @authorize_form.success_redirect_uri + redirect_to @authorize_form.success_redirect_uri, allow_other_host: true delete_branded_experience end @@ -113,7 +113,7 @@ def validate_authorize_form return if result.success? if (redirect_uri = result.extra[:redirect_uri]) - redirect_to redirect_uri + redirect_to redirect_uri, allow_other_host: true else render :error end diff --git a/app/controllers/openid_connect/logout_controller.rb b/app/controllers/openid_connect/logout_controller.rb index 0ec7dc359c7..b25132f0d9a 100644 --- a/app/controllers/openid_connect/logout_controller.rb +++ b/app/controllers/openid_connect/logout_controller.rb @@ -13,7 +13,12 @@ def index if result.success? && (redirect_uri = result.extra[:redirect_uri]) sign_out - redirect_to redirect_uri unless logout_params[:prevent_logout_redirect] == 'true' + unless logout_params[:prevent_logout_redirect] == 'true' + redirect_to( + redirect_uri, + allow_other_host: true, + ) + end else render :error end diff --git a/app/controllers/redirect/redirect_controller.rb b/app/controllers/redirect/redirect_controller.rb index d51f850a695..ad103661aef 100644 --- a/app/controllers/redirect/redirect_controller.rb +++ b/app/controllers/redirect/redirect_controller.rb @@ -15,7 +15,7 @@ def redirect_to_and_log(url, event: nil, tracker_method: analytics.method(:exter else tracker_method.call(redirect_url: url, **location_params) end - redirect_to(url) + redirect_to(url, allow_other_host: true) end end end diff --git a/app/controllers/redirect/return_to_sp_controller.rb b/app/controllers/redirect/return_to_sp_controller.rb index 119ec31cbd8..a1a18f0ca9a 100644 --- a/app/controllers/redirect/return_to_sp_controller.rb +++ b/app/controllers/redirect/return_to_sp_controller.rb @@ -5,14 +5,14 @@ class ReturnToSpController < Redirect::RedirectController def cancel redirect_url = sp_return_url_resolver.return_to_sp_url analytics.return_to_sp_cancelled(redirect_url: redirect_url, **location_params) - redirect_to(redirect_url) + redirect_to(redirect_url, allow_other_host: true) end def failure_to_proof redirect_url = sp_return_url_resolver.failure_to_proof_url analytics.return_to_sp_failure_to_proof(redirect_url: redirect_url, **location_params) - redirect_to(redirect_url) + redirect_to(redirect_url, allow_other_host: true) end private diff --git a/app/controllers/sign_out_controller.rb b/app/controllers/sign_out_controller.rb index 8eb656e5f08..95c2062b1a5 100644 --- a/app/controllers/sign_out_controller.rb +++ b/app/controllers/sign_out_controller.rb @@ -6,7 +6,7 @@ def destroy url_after_cancellation = decorated_session.cancel_link_url sign_out flash[:success] = t('devise.sessions.signed_out') - redirect_to url_after_cancellation + redirect_to(url_after_cancellation, allow_other_host: true) delete_branded_experience end end diff --git a/app/controllers/sign_up/completions_controller.rb b/app/controllers/sign_up/completions_controller.rb index a48828f9e53..c6e77351c08 100644 --- a/app/controllers/sign_up/completions_controller.rb +++ b/app/controllers/sign_up/completions_controller.rb @@ -21,7 +21,10 @@ def update if decider.go_back_to_mobile_app? sign_user_out_and_instruct_to_go_back_to_mobile_app else - redirect_to(sp_session_request_url_with_updated_params || account_url) + redirect_to( + sp_session_request_url_with_updated_params || account_url, + allow_other_host: true, + ) end end diff --git a/app/controllers/two_factor_authentication/piv_cac_verification_controller.rb b/app/controllers/two_factor_authentication/piv_cac_verification_controller.rb index 4ed00032819..4a44fa98e5a 100644 --- a/app/controllers/two_factor_authentication/piv_cac_verification_controller.rb +++ b/app/controllers/two_factor_authentication/piv_cac_verification_controller.rb @@ -20,7 +20,7 @@ def redirect_to_piv_cac_service redirect_to PivCacService.piv_cac_service_link( nonce: piv_cac_nonce, redirect_uri: login_two_factor_piv_cac_url, - ) + ), allow_other_host: true end private diff --git a/app/controllers/users/authorization_confirmation_controller.rb b/app/controllers/users/authorization_confirmation_controller.rb index 9160b3e641a..7c674a6aa12 100644 --- a/app/controllers/users/authorization_confirmation_controller.rb +++ b/app/controllers/users/authorization_confirmation_controller.rb @@ -16,7 +16,7 @@ def new def create analytics.authentication_confirmation_continue - redirect_to sp_session_request_url_with_updated_params + redirect_to sp_session_request_url_with_updated_params, allow_other_host: true end def destroy diff --git a/app/controllers/users/piv_cac_authentication_setup_controller.rb b/app/controllers/users/piv_cac_authentication_setup_controller.rb index 8741abefb08..90d610f2923 100644 --- a/app/controllers/users/piv_cac_authentication_setup_controller.rb +++ b/app/controllers/users/piv_cac_authentication_setup_controller.rb @@ -44,7 +44,7 @@ def submit_new_piv_cac if good_nickname user_session[:piv_cac_nickname] = params[:name] create_piv_cac_nonce - redirect_to piv_cac_service_url_with_redirect + redirect_to piv_cac_service_url_with_redirect, allow_other_host: true else flash[:error] = I18n.t('errors.piv_cac_setup.unique_name') render_prompt diff --git a/app/controllers/users/piv_cac_login_controller.rb b/app/controllers/users/piv_cac_login_controller.rb index 6e8c945881c..2b3a8641d37 100644 --- a/app/controllers/users/piv_cac_login_controller.rb +++ b/app/controllers/users/piv_cac_login_controller.rb @@ -17,7 +17,7 @@ def redirect_to_piv_cac_service redirect_to PivCacService.piv_cac_service_link( nonce: piv_cac_nonce, redirect_uri: login_piv_cac_url, - ) + ), allow_other_host: true end def account_not_found; end diff --git a/app/models/backup_code_configuration.rb b/app/models/backup_code_configuration.rb index 05138a035e5..5db2cc84f40 100644 --- a/app/models/backup_code_configuration.rb +++ b/app/models/backup_code_configuration.rb @@ -14,7 +14,7 @@ def self.unused end def mfa_enabled? - user.backup_code_configurations.unused.any? if user + persisted? && used_at.nil? end def selection_presenters diff --git a/app/views/account_reset/pending/confirm.html.erb b/app/views/account_reset/pending/confirm.html.erb index 4ef46167b20..872066ff582 100644 --- a/app/views/account_reset/pending/confirm.html.erb +++ b/app/views/account_reset/pending/confirm.html.erb @@ -3,6 +3,7 @@ <%= button_to( account_reset_pending_cancel_path, class: 'usa-button usa-button--wide usa-button--big margin-bottom-2', + method: :post, ) { t('forms.buttons.continue') } %> <%= link_to(t('links.go_back'), account_reset_pending_path) %> diff --git a/app/views/account_reset/request/show.html.erb b/app/views/account_reset/request/show.html.erb index e324060b477..bfcceb2a086 100644 --- a/app/views/account_reset/request/show.html.erb +++ b/app/views/account_reset/request/show.html.erb @@ -23,6 +23,7 @@ <%= button_to( account_reset_request_path, class: 'usa-button usa-button--unstyled', + method: :post, ) { t('account_reset.request.yes_continue') } %> <%= render PageFooterComponent.new do %> diff --git a/app/views/users/authorization_confirmation/new.html.erb b/app/views/users/authorization_confirmation/new.html.erb index 8e4287bc166..d13ab57eb32 100644 --- a/app/views/users/authorization_confirmation/new.html.erb +++ b/app/views/users/authorization_confirmation/new.html.erb @@ -30,7 +30,7 @@