Commit bd680999 authored by Robert Speicher's avatar Robert Speicher

Be consistent with what we call the 2FA feature

"Two-factor" vs. "2-Factor"
parent 35b62fac
%div
.login-box
.login-heading
%h3 Two-Factor Authentication
%h3 Two-factor Authentication
.login-body
= form_for(resource, as: resource_name, url: session_path(resource_name), method: :post) do |f|
- if @error
......
......@@ -30,26 +30,28 @@
%fieldset
- if current_user.otp_required_for_login
%legend.text-success
%i.fa.fa-check
Two-Factor Authentication enabled
= icon('check')
Two-factor Authentication enabled
%div
.pull-right
= link_to "Disable 2-Factor Authentication", profile_two_factor_auth_path, method: :delete, class: 'btn btn-close btn-sm'
= link_to "Disable Two-factor Authentication", profile_two_factor_auth_path, method: :delete, class: 'btn btn-close btn-sm',
data: { confirm: 'Are you sure?' }
%p
If you lost your recovery codes - you can
If you lose your recovery codes, you can
%strong
= link_to "generate new one", codes_profile_two_factor_auth_path, method: :post,
data: { confirm: 'After we generate new recovery codes - old codes will not be valid any more. Are you sure?' }
= succeed '.' do
= link_to "generate new ones", codes_profile_two_factor_auth_path, method: :post,
data: { confirm: 'This will invalidate the old codes. Are you sure?' }
- else
%legend Two-Factor Authentication
%legend Two-factor Authentication
%div
%p
Keep your account secure by enabling two-factor authentication.
%br
Each time you log in, you’ll be required to provide your password plus a randomly generated access code.
%div
= link_to "Enable 2-Factor Authentication", new_profile_two_factor_auth_path, class: 'btn btn-success'
= link_to "Enable Two-factor Authentication", new_profile_two_factor_auth_path, class: 'btn btn-success'
- if show_profile_social_tab?
%fieldset
......
%h3.page-title Two-Factor Authentication Recovery codes
%h3.page-title Two-factor Authentication Recovery codes
%hr
= render 'codes'
.alert.alert-success
Congratulations! You have enabled Two-Factor Authentication!
Congratulations! You have enabled Two-factor Authentication!
= render 'codes'
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment