From f0cc238ce0ae8faab3cf76091632004376c5c9b9 Mon Sep 17 00:00:00 2001
From: sandeepsajan0 <sandeepsajan0@gmail.com>
Date: Tue, 31 May 2022 12:13:01 +0530
Subject: [PATCH] Update text content and account page headers

---
 .../templates/two_factor/core/backup_tokens.html     |  2 +-
 .../two_factor/core/backup_tokens_password.html      | 12 ++++++------
 hypha/apply/users/templates/users/account.html       |  9 +++++----
 3 files changed, 12 insertions(+), 11 deletions(-)

diff --git a/hypha/apply/users/templates/two_factor/core/backup_tokens.html b/hypha/apply/users/templates/two_factor/core/backup_tokens.html
index 670c87ed8..e2137f5cb 100644
--- a/hypha/apply/users/templates/two_factor/core/backup_tokens.html
+++ b/hypha/apply/users/templates/two_factor/core/backup_tokens.html
@@ -7,7 +7,7 @@
   <h1>{% block title %}{% trans "Backup Codes" %}{% endblock %}</h1>
   <p>{% blocktrans trimmed %}These codes should be kept in a safe,
       private place for when you need them. When they are used up,
-      you can generate a new set of backup codes{% endblocktrans %}</p>
+      you can generate a new set of backup codes.{% endblocktrans %}</p>
 
   {% if device.token_set.count %}
     <ul>
diff --git a/hypha/apply/users/templates/two_factor/core/backup_tokens_password.html b/hypha/apply/users/templates/two_factor/core/backup_tokens_password.html
index e2d83e142..ae3541f82 100644
--- a/hypha/apply/users/templates/two_factor/core/backup_tokens_password.html
+++ b/hypha/apply/users/templates/two_factor/core/backup_tokens_password.html
@@ -5,13 +5,13 @@
 <p><a href="{% url 'users:account'%}"
        class="btn btn-link">{% trans "Back to account" %}</a></p>
   <h1>{% block title %}{% trans "Backup Codes" %}{% endblock %}</h1>
-  <p>{% blocktrans trimmed %}Backup codes can be used when your primary and backup
-      phone numbers aren't available. The backup codes below can be used
-      for login verification.
+  <p>{% blocktrans trimmed %}If you loose your smartphone, or your Authenticator app is not available,
+      you can use a backup code along with your username and password to login until you recover your smartphone.
+      Each backup code can be used only once.
       </br>
-      If you've used up all your backup codes, you
-      can generate a new set of backup codes. Only the backup codes shown
-      below will be valid.{% endblocktrans %}</p>
+      </br>
+      These codes should be kept in a secure, private place for when you need them.
+      When they are used up, you can generate a new set of backup codes.{% endblocktrans %}</p>
 <div class="wrapper wrapper--small wrapper--inner-space-medium">
     <form class="form" action="" method="POST" novalidate>
         {% if form.non_field_errors %}
diff --git a/hypha/apply/users/templates/users/account.html b/hypha/apply/users/templates/users/account.html
index 1f6ea97c9..02c363760 100644
--- a/hypha/apply/users/templates/users/account.html
+++ b/hypha/apply/users/templates/users/account.html
@@ -24,16 +24,16 @@
             {% endfor %}
             <button class="button button--primary" type="submit">{% trans "Update Profile" %}</button>
         </form>
-<!--    </div>-->
 
         {% if show_change_password and user.has_usable_password and not backends.associated %}
             <br>
             <hr>
-<!--        <div class="profile__column">-->
-            <h3>{% trans "Change password" %}</h3>
+        <div>
+            <h3>{% trans "Account Security" %}</h3>
+            <h4>{% trans "Password" %}</h4>
             <p><a class="button button--primary" href="{% url 'users:password_change' %}">{% trans "Update password" %}</a></p>
 
-            <h3>{% trans "Account security" %}</h3>
+            <h4>{% trans "Two-Factor Authentication (2FA)" %}</h4>
             {% if default_device %}
                 <div>
                     <p><a class="link link--button link--button--narrow" href="{% url 'users:backup_tokens_password' %}">{% trans "Show Codes" %}</a></p>
@@ -42,6 +42,7 @@
             {% else %}
                 <p><a class="link link--button link--button--narrow" href="{% url 'two_factor:setup' %}">{% trans "Enable 2FA" %}</a></p>
             {% endif %}
+        </div>
         {% endif %}
     </div>
 
-- 
GitLab