|
2 | 2 | {% load i18n %} |
3 | 3 |
|
4 | 4 | {% block content_inner %} |
5 | | - {% if wizard.steps.current == 'welcome' %} |
6 | | - <p>{% blocktrans trimmed %}2FA is an extra layer of security used to make sure that people trying to gain access to an |
7 | | - online account are who they say they are. We recommend using Authy or another |
8 | | - authenticator app.{% endblocktrans %}</p> |
9 | | - <p>{% blocktrans trimmed %}Please contact {{ ORG_EMAIL }} if you have technical difficulty |
10 | | - enabling 2FA.{% endblocktrans %}</p> |
11 | | - {% elif wizard.steps.current == 'method' %} |
12 | | - <p>{% blocktrans trimmed %}Please select which authentication method you would |
13 | | - like to use.{% endblocktrans %}</p> |
14 | | - {% elif wizard.steps.current == 'generator' %} |
15 | | - <p>{% blocktrans trimmed %}2FA requires a verification code to pair your smartphone with your account. |
16 | | - {% endblocktrans %}</p> |
17 | | - <p>{% blocktrans trimmed %}<strong>Step 1:</strong> Open the Authenticator app on your phone and scan the QR code displayed below. |
18 | | - {% endblocktrans %}</p> |
19 | | - <p><img src="{{ QR_URL }}" alt="QR Code" class="bg-white" width="200" height="200" /></p> |
20 | | - <p style="font-size: small">{% trans "Unable to scan the QR code? Try this link:" %} <a href="{{ otpauth_url }}" title="2FA Setup URL">{{ otpauth_url }}</a></p> |
21 | | - <p>{% blocktrans trimmed %}<strong>Step 2:</strong> Enter the 6-digit verification code generated by the app below.{% endblocktrans %}</p> |
22 | | - {% elif wizard.steps.current == 'sms' %} |
23 | | - <p>{% blocktrans trimmed %}Please enter the phone number you wish to receive the |
24 | | - text messages on. This number will be validated in the next step. |
25 | | - {% endblocktrans %}</p> |
26 | | - {% elif wizard.steps.current == 'call' %} |
27 | | - <p>{% blocktrans trimmed %}Please enter the phone number you wish to be called on. |
28 | | - This number will be validated in the next step. {% endblocktrans %}</p> |
29 | | - {% elif wizard.steps.current == 'validation' %} |
30 | | - {% if challenge_succeeded %} |
31 | | - {% if device.method == 'call' %} |
32 | | - <p>{% blocktrans trimmed %}We are calling your phone right now, please enter the |
33 | | - digits you hear.{% endblocktrans %}</p> |
34 | | - {% elif device.method == 'sms' %} |
35 | | - <p>{% blocktrans trimmed %}We sent you a text message, please enter the tokens we |
36 | | - sent.{% endblocktrans %}</p> |
| 5 | + <div class="prose"> |
| 6 | + {% if wizard.steps.current == 'welcome' %} |
| 7 | + <p>{% blocktrans trimmed %}2FA is an extra layer of security used to make sure that people trying to gain access to an |
| 8 | + online account are who they say they are. We recommend using Authy or another |
| 9 | + authenticator app.{% endblocktrans %}</p> |
| 10 | + <p class="text-sm text-fg-muted">{% blocktrans trimmed %}Please contact {{ ORG_EMAIL }} if you have technical difficulty |
| 11 | + enabling 2FA.{% endblocktrans %}</p> |
| 12 | + {% elif wizard.steps.current == 'method' %} |
| 13 | + <p>{% blocktrans trimmed %}Please select which authentication method you would |
| 14 | + like to use.{% endblocktrans %}</p> |
| 15 | + {% elif wizard.steps.current == 'generator' %} |
| 16 | + <p>{% blocktrans trimmed %}2FA requires a verification code to pair your smartphone with your account. |
| 17 | + {% endblocktrans %}</p> |
| 18 | + <p>{% blocktrans trimmed %}<strong>Step 1:</strong> Open the Authenticator app on your phone and scan the QR code displayed below. |
| 19 | + {% endblocktrans %}</p> |
| 20 | + <p><img src="{{ QR_URL }}" alt="QR Code" class="bg-white" width="200" height="200" /></p> |
| 21 | + <p style="font-size: small">{% trans "Unable to scan the QR code? Try this link:" %} <a href="{{ otpauth_url }}" title="2FA Setup URL">{{ otpauth_url }}</a></p> |
| 22 | + <p>{% blocktrans trimmed %}<strong>Step 2:</strong> Enter the 6-digit verification code generated by the app below.{% endblocktrans %}</p> |
| 23 | + {% elif wizard.steps.current == 'sms' %} |
| 24 | + <p>{% blocktrans trimmed %}Please enter the phone number you wish to receive the |
| 25 | + text messages on. This number will be validated in the next step. |
| 26 | + {% endblocktrans %}</p> |
| 27 | + {% elif wizard.steps.current == 'call' %} |
| 28 | + <p>{% blocktrans trimmed %}Please enter the phone number you wish to be called on. |
| 29 | + This number will be validated in the next step. {% endblocktrans %}</p> |
| 30 | + {% elif wizard.steps.current == 'validation' %} |
| 31 | + {% if challenge_succeeded %} |
| 32 | + {% if device.method == 'call' %} |
| 33 | + <p>{% blocktrans trimmed %}We are calling your phone right now, please enter the |
| 34 | + digits you hear.{% endblocktrans %}</p> |
| 35 | + {% elif device.method == 'sms' %} |
| 36 | + <p>{% blocktrans trimmed %}We sent you a text message, please enter the tokens we |
| 37 | + sent.{% endblocktrans %}</p> |
| 38 | + {% endif %} |
| 39 | + {% else %} |
| 40 | + <p class="alert alert-warning" role="alert">{% blocktrans trimmed %}We've |
| 41 | + encountered an issue with the selected authentication method. Please |
| 42 | + go back and verify that you entered your information correctly, try |
| 43 | + again, or use a different authentication method instead. If the issue |
| 44 | + persists, contact the site administrator.{% endblocktrans %}</p> |
37 | 45 | {% endif %} |
38 | | - {% else %} |
39 | | - <p class="alert alert-warning" role="alert">{% blocktrans trimmed %}We've |
40 | | - encountered an issue with the selected authentication method. Please |
41 | | - go back and verify that you entered your information correctly, try |
42 | | - again, or use a different authentication method instead. If the issue |
43 | | - persists, contact the site administrator.{% endblocktrans %}</p> |
| 46 | + {% elif wizard.steps.current == 'yubikey' %} |
| 47 | + <p>{% blocktrans trimmed %}To identify and verify your YubiKey, please insert a |
| 48 | + token in the field below. Your YubiKey will be linked to your |
| 49 | + account.{% endblocktrans %}</p> |
44 | 50 | {% endif %} |
45 | | - {% elif wizard.steps.current == 'yubikey' %} |
46 | | - <p>{% blocktrans trimmed %}To identify and verify your YubiKey, please insert a |
47 | | - token in the field below. Your YubiKey will be linked to your |
48 | | - account.{% endblocktrans %}</p> |
49 | | - {% endif %} |
50 | | - |
| 51 | + </div> |
51 | 52 | <form action="" method="post">{% csrf_token %} |
52 | 53 | {% include "two_factor/_wizard_forms.html" %} |
53 | 54 |
|
|
0 commit comments