From 8111fcd334066d4f3b8c8cc6d36fb4e5eb67c675 Mon Sep 17 00:00:00 2001
From: Saurabh Kumar <theskumar@users.noreply.github.com>
Date: Tue, 8 Nov 2022 16:47:01 +0530
Subject: [PATCH] update login page with backup

---
 hypha/apply/users/templates/users/login.html | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/hypha/apply/users/templates/users/login.html b/hypha/apply/users/templates/users/login.html
index 13ca853a1..e6afbf595 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 %}
-- 
GitLab