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 @@ ...@@ -20,9 +20,8 @@
<p>{% blocktrans trimmed %}Please enter the 6-digit verification code generated by your Authenticator App.{% endblocktrans %}</p> <p>{% blocktrans trimmed %}Please enter the 6-digit verification code generated by your Authenticator App.{% endblocktrans %}</p>
{% endif %} {% endif %}
{% elif wizard.steps.current == 'backup' %} {% elif wizard.steps.current == 'backup' %}
<p>{% blocktrans trimmed %}Use this form for entering backup tokens for logging in. <p>{% blocktrans trimmed %}Please enter one of the backup codes to login to your account.
These tokens have been generated for you to print and keep safe. Please Those codes were generated for you during 2FA setup to print or keep safe in a password manager.{% endblocktrans %}</p>
enter one of these backup tokens to login to your account.{% endblocktrans %}</p>
{% endif %} {% endif %}
<form class="form form--with-p-tags form--user-login" method="post"> <form class="form form--with-p-tags form--user-login" method="post">
...@@ -43,7 +42,6 @@ ...@@ -43,7 +42,6 @@
{# hidden submit button to enable [enter] key #} {# hidden submit button to enable [enter] key #}
<div style="margin-left: -9999px"><input type="submit" value=""/></div> <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 %} {% if other_devices %}
<p>{% trans "Or, alternatively, use one of your backup phones:" %}</p> <p>{% trans "Or, alternatively, use one of your backup phones:" %}</p>
...@@ -73,5 +71,7 @@ ...@@ -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> <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> </div>
{% endif %} {% 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> </div>
{% endblock %} {% 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