diff --git a/hypha/apply/users/templates/users/login.html b/hypha/apply/users/templates/users/login.html index 13ca853a1ad2c200b87895f189f1438616f1fe9d..e6afbf595106e8b76b3e4777982bbaf11a201224 100644 --- a/hypha/apply/users/templates/users/login.html +++ b/hypha/apply/users/templates/users/login.html @@ -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 %}