BigW Consortium Gitlab

Commit bd680999 by Robert Speicher

Be consistent with what we call the 2FA feature

"Two-factor" vs. "2-Factor"
parent 35b62fac
%div %div
.login-box .login-box
.login-heading .login-heading
%h3 Two-Factor Authentication %h3 Two-factor Authentication
.login-body .login-body
= form_for(resource, as: resource_name, url: session_path(resource_name), method: :post) do |f| = form_for(resource, as: resource_name, url: session_path(resource_name), method: :post) do |f|
- if @error - if @error
......
...@@ -30,26 +30,28 @@ ...@@ -30,26 +30,28 @@
%fieldset %fieldset
- if current_user.otp_required_for_login - if current_user.otp_required_for_login
%legend.text-success %legend.text-success
%i.fa.fa-check = icon('check')
Two-Factor Authentication enabled Two-factor Authentication enabled
%div %div
.pull-right .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 %p
If you lost your recovery codes - you can If you lose your recovery codes, you can
%strong %strong
= link_to "generate new one", codes_profile_two_factor_auth_path, method: :post, = succeed '.' do
data: { confirm: 'After we generate new recovery codes - old codes will not be valid any more. Are you sure?' } = 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 - else
%legend Two-Factor Authentication %legend Two-factor Authentication
%div %div
%p %p
Keep your account secure by enabling two-factor authentication. Keep your account secure by enabling two-factor authentication.
%br %br
Each time you log in, you’ll be required to provide your password plus a randomly generated access code. Each time you log in, you’ll be required to provide your password plus a randomly generated access code.
%div %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? - if show_profile_social_tab?
%fieldset %fieldset
......
%h3.page-title Two-Factor Authentication Recovery codes %h3.page-title Two-factor Authentication Recovery codes
%hr %hr
= render 'codes' = render 'codes'
.alert.alert-success .alert.alert-success
Congratulations! You have enabled Two-Factor Authentication! Congratulations! You have enabled Two-factor Authentication!
= render 'codes' = 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