Skip to content
Snippets Groups Projects
Commit f0cc238c authored by sandeepsajan0's avatar sandeepsajan0 Committed by Fredrik Jonsson
Browse files

Update text content and account page headers

parent bfe04ff6
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<h1>{% block title %}{% trans "Backup Codes" %}{% endblock %}</h1> <h1>{% block title %}{% trans "Backup Codes" %}{% endblock %}</h1>
<p>{% blocktrans trimmed %}These codes should be kept in a safe, <p>{% blocktrans trimmed %}These codes should be kept in a safe,
private place for when you need them. When they are used up, 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 %} {% if device.token_set.count %}
<ul> <ul>
......
...@@ -5,13 +5,13 @@ ...@@ -5,13 +5,13 @@
<p><a href="{% url 'users:account'%}" <p><a href="{% url 'users:account'%}"
class="btn btn-link">{% trans "Back to account" %}</a></p> class="btn btn-link">{% trans "Back to account" %}</a></p>
<h1>{% block title %}{% trans "Backup Codes" %}{% endblock %}</h1> <h1>{% block title %}{% trans "Backup Codes" %}{% endblock %}</h1>
<p>{% blocktrans trimmed %}Backup codes can be used when your primary and backup <p>{% blocktrans trimmed %}If you loose your smartphone, or your Authenticator app is not available,
phone numbers aren't available. The backup codes below can be used you can use a backup code along with your username and password to login until you recover your smartphone.
for login verification. Each backup code can be used only once.
</br> </br>
If you've used up all your backup codes, you </br>
can generate a new set of backup codes. Only the backup codes shown These codes should be kept in a secure, private place for when you need them.
below will be valid.{% endblocktrans %}</p> 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"> <div class="wrapper wrapper--small wrapper--inner-space-medium">
<form class="form" action="" method="POST" novalidate> <form class="form" action="" method="POST" novalidate>
{% if form.non_field_errors %} {% if form.non_field_errors %}
......
...@@ -24,16 +24,16 @@ ...@@ -24,16 +24,16 @@
{% endfor %} {% endfor %}
<button class="button button--primary" type="submit">{% trans "Update Profile" %}</button> <button class="button button--primary" type="submit">{% trans "Update Profile" %}</button>
</form> </form>
<!-- </div>-->
{% if show_change_password and user.has_usable_password and not backends.associated %} {% if show_change_password and user.has_usable_password and not backends.associated %}
<br> <br>
<hr> <hr>
<!-- <div class="profile__column">--> <div>
<h3>{% trans "Change password" %}</h3> <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> <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 %} {% if default_device %}
<div> <div>
<p><a class="link link--button link--button--narrow" href="{% url 'users:backup_tokens_password' %}">{% trans "Show Codes" %}</a></p> <p><a class="link link--button link--button--narrow" href="{% url 'users:backup_tokens_password' %}">{% trans "Show Codes" %}</a></p>
...@@ -42,6 +42,7 @@ ...@@ -42,6 +42,7 @@
{% else %} {% else %}
<p><a class="link link--button link--button--narrow" href="{% url 'two_factor:setup' %}">{% trans "Enable 2FA" %}</a></p> <p><a class="link link--button link--button--narrow" href="{% url 'two_factor:setup' %}">{% trans "Enable 2FA" %}</a></p>
{% endif %} {% endif %}
</div>
{% endif %} {% endif %}
</div> </div>
......
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