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
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ def method
:auth_app
end

# :reek:UtilityFunction
def security_level
I18n.t('two_factor_authentication.two_factor_choice_options.secure_label')
end

def disabled?
user&.auth_app_configurations&.any?
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ def method
:backup_code
end

# :reek:UtilityFunction
def security_level
I18n.t('two_factor_authentication.two_factor_choice_options.least_secure_label')
end

def disabled?
user&.backup_code_configurations&.any?
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ def mfa_configuration_count
user.phone_configurations.count
end

def security_level
t('two_factor_authentication.two_factor_choice_options.less_secure_label')
end

def disabled?
VendorStatus.new.all_phone_vendor_outage? || user&.phone_configurations&.any?
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ def method
:piv_cac
end

def security_level
I18n.t('two_factor_authentication.two_factor_choice_options.more_secure_label')
end

def disabled?
user&.piv_cac_configurations&.any?
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ def mfa_configuration_description
)
end

def security_level; end

def html_class
''
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ def disabled?
user&.webauthn_configurations&.where(platform_authenticator: true)&.any?
end

def security_level
I18n.t('two_factor_authentication.two_factor_choice_options.more_secure_label')
end

def mfa_configuration_count
user.webauthn_configurations.where(platform_authenticator: true).count
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ def html_class
'display-none'
end

# :reek:UtilityFunction
def security_level
I18n.t('two_factor_authentication.two_factor_choice_options.more_secure_label')
end

def disabled?
user&.webauthn_configurations&.where(platform_authenticator: [false, nil])&.any?
end
Expand Down
4 changes: 0 additions & 4 deletions app/presenters/two_factor_options_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ def intro
end
end

def show_security_level?
!(piv_cac_required? || (aal3_only? && mfa_policy.two_factor_enabled?))
end

private

def piv_cac_option
Expand Down
4 changes: 0 additions & 4 deletions config/locales/two_factor_authentication/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,6 @@ en:
configurations_added:
one: '(%{count} added)'
other: '(%{count} added)'
least_secure_label: Least secure
less_secure_label: Less secure
more_secure_label: More Secure
phone: Text or voice message
phone_info: Receive a secure code by (SMS) text or phone call.
phone_info_html: Receive a secure code by (SMS) text or phone call. <strong>You
Expand All @@ -143,7 +140,6 @@ en:
(toll) phone numbers.
piv_cac: Government employee ID
piv_cac_info: PIV/CAC cards for government and military employees. Desktop only.
secure_label: Secure
sms: Text message / SMS
sms_info: Get your security code via text message / SMS.
unused_backup_code:
Expand Down
4 changes: 0 additions & 4 deletions config/locales/two_factor_authentication/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,6 @@ es:
configurations_added:
one: '(%{count} añadido)'
other: '(%{count} añadido)'
least_secure_label: Lo menos seguro
less_secure_label: Menos seguro
more_secure_label: Más seguro
phone: Mensaje de texto o de voz
phone_info: Recibir un código seguro por medio de un mensaje de texto (SMS) o
una llamada telefónica.
Expand All @@ -157,7 +154,6 @@ es:
piv_cac: Identificación de empleado gubernamental
piv_cac_info: Credenciales PIV/CAC para empleados gubernamentales y del
ejército. Únicamente versión de escritorio.
secure_label: Seguro
sms: Mensaje de texto / SMS
sms_info: Obtenga su código de seguridad a través de mensajes de texto / SMS.
unused_backup_code:
Expand Down
4 changes: 0 additions & 4 deletions config/locales/two_factor_authentication/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,6 @@ fr:
configurations_added:
one: '(%{count} ajouté)'
other: '(%{count} ajoutés)'
least_secure_label: Le moins sécurisé
less_secure_label: Moins sécurisé
more_secure_label: Plus sécurisé
phone: Message texte ou vocal
phone_info: Recevoir un code de sécurité par texto (SMS) ou appel téléphonique.
phone_info_html: Recevoir un code de sécurité par texto (SMS) ou appel
Expand All @@ -160,7 +157,6 @@ fr:
piv_cac: Carte d’identification des employés du gouvernement
piv_cac_info: Cartes PIV/CAC pour les fonctionnaires et les militaires. Bureau
uniquement.
secure_label: Sécurisé
sms: SMS
sms_info: Obtenez votre code de sécurité par SMS.
unused_backup_code:
Expand Down