diff --git a/app/views/mfa_setup/_form.html.erb b/app/views/mfa_setup/_form.html.erb index 96602342..30c0e595 100644 --- a/app/views/mfa_setup/_form.html.erb +++ b/app/views/mfa_setup/_form.html.erb @@ -5,6 +5,10 @@
<%== RQRCode::QRCode.new(@provision_url).as_svg(viewbox: true, svg_attributes: { class: 'md:w-80 md:h-80 my-4 mx-auto' }) %>
+
+

<%= t('or_enter_this_key_manually') %>:

+ <%= current_user.otp_secret %> +
<%= f.text_field :otp_attempt, required: true, placeholder: 'XXX-XXX', class: 'base-input text-center' %> diff --git a/config/locales/i18n.yml b/config/locales/i18n.yml index cb4c112b..8301a859 100644 --- a/config/locales/i18n.yml +++ b/config/locales/i18n.yml @@ -285,6 +285,7 @@ en: &en confirm_password: Confirm new password save_password_and_sign_in: Save password and Sign in use_an_authenticator_mobile_app_like_google_authenticator_or_1password_to_scan_the_qr_code_below: Use an authenticator mobile app like Google Authenticator or 1Password to scan the QR code below. + or_enter_this_key_manually: Or enter this key manually remove_2fa: Remove 2FA setup_2fa: Setup 2FA 2fa_has_been_configured: 2FA has been configured.