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

Update login page to use code instead of token

parent e29f6051
No related branches found
No related tags found
No related merge requests found
......@@ -17,8 +17,7 @@
<p>{% blocktrans trimmed %}We sent you a text message, please enter the tokens we
sent.{% endblocktrans %}</p>
{% else %}
<p>{% blocktrans trimmed %}Please enter the tokens generated by your token
generator.{% endblocktrans %}</p>
<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.
......@@ -44,6 +43,7 @@
{# 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>
......@@ -56,10 +56,9 @@
{% endfor %}</p>
{% endif %}
{% if backup_tokens %}
<p>{% trans "As a last resort, you can use a backup token:" %}</p>
<p>
<p>{% trans "As a last resort, you can use a backup codes:" %}
<button name="wizard_goto_step" type="submit" value="backup"
class="link link--button link--button-white link--button-white--narrow">{% trans "Use Backup Token" %}</button>
class="link link--button link--button-white link--button-white--narrow">{% trans "Use Backup Code" %}</button>
</p>
{% endif %}
......
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