-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11759 from 18F/stages/rc-2025-01-16
Deploy RC 444 to Production
- Loading branch information
Showing
42 changed files
with
481 additions
and
415 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# frozen_string_literal: true | ||
|
||
module Users | ||
class BackupCodeReminderController < ApplicationController | ||
before_action :confirm_two_factor_authenticated | ||
|
||
def show | ||
flash.now[:success] = t('notices.authenticated_successfully') | ||
analytics.backup_code_reminder_visited | ||
end | ||
|
||
def update | ||
user_session[:dismissed_backup_code_reminder] = true | ||
analytics.backup_code_reminder_submitted(has_codes: has_codes?) | ||
|
||
if has_codes? | ||
redirect_to after_sign_in_path_for(current_user) | ||
else | ||
redirect_to backup_code_regenerate_path | ||
end | ||
end | ||
|
||
private | ||
|
||
def has_codes? | ||
params[:has_codes].present? | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 9 additions & 9 deletions
18
...users/backup_code_setup/reminder.html.erb → .../users/backup_code_reminder/show.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
<% self.title = t('forms.backup_code.title') %> | ||
<% self.title = t('forms.backup_code_reminder.heading') %> | ||
|
||
<%= image_tag asset_url('user-signup.svg'), width: 107, height: 119, alt: '', class: 'margin-bottom-4', aria: { hidden: true } %> | ||
|
||
<%= render PageHeadingComponent.new.with_content(t('forms.backup_code_reminder.heading')) %> | ||
|
||
<p class='margin-top-1 margin-bottom-4'> | ||
<p> | ||
<%= t('forms.backup_code_reminder.body_info') %> | ||
</p> | ||
|
||
<%= button_to( | ||
account_path, | ||
method: :get, | ||
class: 'usa-button usa-button--wide usa-button--big margin-bottom-3', | ||
) do %> | ||
<%= t('forms.backup_code_reminder.have_codes') %> | ||
<% end %> | ||
<div class="margin-top-5 margin-bottom-2"> | ||
<%= render ButtonComponent.new( | ||
url: account_path, | ||
big: true, | ||
wide: true, | ||
).with_content(t('forms.backup_code_reminder.have_codes')) %> | ||
</div> | ||
|
||
<%= link_to t('forms.backup_code_reminder.need_new_codes'), backup_code_regenerate_path %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.