Skip to content
Snippets Groups Projects
Unverified Commit 8111fcd3 authored by Saurabh Kumar's avatar Saurabh Kumar
Browse files

update login page with backup

parent d2a8403f
No related branches found
No related tags found
No related merge requests found
......@@ -20,9 +20,8 @@
<p>{% blocktrans trimmed %}Please enter the 6-digit verification code generated by your Authenticator App.{% endblocktrans %}</p>
{% endif %}
{% elif wizard.steps.current == 'backup' %}
<p>{% blocktrans trimmed %}Use this form for entering backup tokens for logging in.
These tokens have been generated for you to print and keep safe. Please
enter one of these backup tokens to login to your account.{% endblocktrans %}</p>
<p>{% blocktrans trimmed %}Please enter one of the backup codes to login to your account.
Those codes were generated for you during 2FA setup to print or keep safe in a password manager.{% endblocktrans %}</p>
{% endif %}
<form class="form form--with-p-tags form--user-login" method="post">
......@@ -43,7 +42,6 @@
{# hidden submit button to enable [enter] key #}
<div style="margin-left: -9999px"><input type="submit" value=""/></div>
<script>document.querySelector("label[for=id_token-otp_token]").textContent = "{% trans 'Verification Code' %}: ";</script>
{% if other_devices %}
<p>{% trans "Or, alternatively, use one of your backup phones:" %}</p>
......@@ -73,5 +71,7 @@
<a class="link link--button link--button-long-text" href="{% url "social:begin" "google-oauth2" %}{% if next %}?next={{ next }}{% endif %}">{% blocktrans %}Log in with your {{ ORG_SHORT_NAME }} email{% endblocktrans %}</a>
</div>
{% endif %}
<script>document.querySelector("label[for=id_token-otp_token]").textContent = "{% trans 'Verification Code' %}: ";</script>
<script>document.querySelector("label[for=id_backup-otp_token]").textContent = "{% trans 'Backup Code' %}: ";</script>
</div>
{% endblock %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment