Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/controllers/users/backup_code_setup_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class BackupCodeSetupController < ApplicationController
before_action :set_backup_code_setup_presenter
before_action :apply_secure_headers_override
before_action :authorize_backup_code_disable, only: [:delete]
before_action :confirm_recently_authenticated_2fa, if: -> do
before_action :confirm_recently_authenticated_2fa, except: [:reminder], if: -> do
IdentityConfig.store.reauthentication_for_second_factor_management_enabled
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
:authenticate_user!,
:confirm_user_authenticated_for_2fa_setup,
:apply_secure_headers_override,
:confirm_recently_authenticated_2fa,
[:confirm_recently_authenticated_2fa, except: ['reminder']],
)
end
end
Expand Down
4 changes: 1 addition & 3 deletions spec/support/matchers/have_actions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@ def parsed_only_action(action)
end

def parsed_except_action(action)
except_option = unless_option_for(action)[0]

"#{except_option.class}OptionParser".constantize.new(except_option).parse
unless_option_for(action)[0].instance_variable_get(:@actions).to_a
end

class ProcOptionParser
Expand Down