Debian Codegraph @

allauth/templates/mfa/totp/activate_form.html

raw
1 {% extends "mfa/totp/base.html" %}
2 {% load allauth i18n %}
3 {% block head_title %}
4 {% translate "Activate Authenticator App" %}
5 {% endblock head_title %}
6 {% block content %}
7 {% element h1 %}
8 {% translate "Activate Authenticator App" %}
9 {% endelement %}
10 {% element p %}
11 {% blocktranslate %}To protect your account with two-factor authentication, scan the QR code below with your authenticator app. Then, input the verification code generated by the app below.{% endblocktranslate %}
12 {% endelement %}
13 {% url 'mfa_activate_totp' as action_url %}
14 {% element form form=form method="post" action=action_url %}
15 {% slot body %}
16 {% element img src=totp_svg_data_uri alt=form.secret tags="mfa,totp,qr" %}
17 {% endelement %}
18 {% csrf_token %}
19 {% element field id="authenticator_secret" type="text" value=form.secret disabled=True %}
20 {% slot label %}
21 {% translate "Authenticator secret" %}
22 {% endslot %}
23 {% slot help_text %}
24 {% translate "You can store this secret and use it to reinstall your authenticator app at a later time." %}
25 {% endslot %}
26 {% endelement %}
27 {% element fields form=form %}
28 {% endelement %}
29 {% endslot %}
30 {% slot actions %}
31 {% element button type="submit" %}
32 {% trans "Activate" %}
33 {% endelement %}
34 {% endslot %}
35 {% endelement %}
36 {% endblock content %}