pull/670/merge
james LI 11 hours ago committed by GitHub
commit 27aa902c73
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -5,6 +5,10 @@
<div>
<%== RQRCode::QRCode.new(@provision_url).as_svg(viewbox: true, svg_attributes: { class: 'md:w-80 md:h-80 my-4 mx-auto' }) %>
</div>
<div class="text-center my-2">
<p class="text-sm text-base-content/70"><%= t('or_enter_this_key_manually') %>:</p>
<code class="font-mono text-sm select-all bg-base-200 px-2 py-1 rounded break-all"><%= current_user.otp_secret %></code>
</div>
<div class="form-control my-6 space-y-2">
<%= f.text_field :otp_attempt, required: true, placeholder: 'XXX-XXX', class: 'base-input text-center' %>
<span>

@ -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.

Loading…
Cancel
Save