{% extends "base.html" %} {% block body %} {% if user.is_totp %}

{{ gettext('Enable FreeOTP') }}

{{ gettext("You're almost done! To finish adding this new user, have them follow the instructions below to set up two-factor authentication with FreeOTP. Once they've added an entry for this account in the app, have them enter one of the 6-digit codes from the app to confirm that two factor authentication is set up correctly.") }}

  1. {{ gettext('Install FreeOTP on your phone') }}
  2. {{ gettext('Open the FreeOTP app') }}
  3. {{ gettext('Tap the QR code symbol at the top') }}
  4. {{ gettext('Your phone will now be in "scanning" mode. When you are in this mode, scan the barcode below:') }}
{{ user.shared_secret_qrcode }}

{{ gettext("Can't scan the barcode? Enter the following code manually:") }}

{{ user.formatted_otp_secret }}

{{ gettext('Once you have scanned the barcode, enter the 6-digit code below:') }}

{% else %}

{{ gettext('Enable YubiKey (OATH-HOTP)') }}

{{ gettext('Once you have configured your YubiKey, enter the 6-digit code below:') }}

{% endif %}
{% endblock %}