{% extends 'base.html' %} {% load otp_tags %} {% block content %} {% if is_verified %}
You have successfully enabled mfa on your account.
{% else %} {% if qr_code %}

Add your app to your two-factor authentication app

You will need to install a two-factor authentication application on your phone.

1. Scan barcode

{{qr_code|qrcode:"my alt"}}

After scanning the barcode image, the app will display a six-digit code that you can enter below.


{% csrf_token %}
{% else %}
Two-factor authentication adds an extra layer of security to your account. In addition to your username and password, you’ll need to enter a code that this app sends to you via text or an app on your phone.

When you sign into your app you’ll enter your username and password, like always.
When logging in from a new browser, you’ll need to enter an additional code from your phone or tablet.
Once you enter the code on the website, you’ll be logged into your app.

Use an application on your phone to get two-factor authentication codes when prompted.

{% csrf_token %}
{% endif %} {% endif %} {% endblock %}