diff --git a/app/views/mfa_setup/_form.html.erb b/app/views/mfa_setup/_form.html.erb index 52b463a3..5d9dcb2d 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' }).sub(/\A<\?xml[^>]*\?>/, '') %>
+
+

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

+ <%= current_user.otp_secret %> +
<%= f.text_field :otp_attempt, required: true, inputmode: 'numeric', placeholder: 'XXXXXX', class: 'base-input text-center' %> diff --git a/config/locales/i18n.yml b/config/locales/i18n.yml index 9e20f38d..baa672b6 100644 --- a/config/locales/i18n.yml +++ b/config/locales/i18n.yml @@ -324,6 +324,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.