Commit ff6d0d35 authored by Noe Nieto's avatar Noe Nieto 💬

Cosmetic changes for reset password; Purism/LibremOne/task#269

parent b13fd49d
Pipeline #6354 passed with stage
in 39 seconds
{% extends "password_reset/base.html" %}
{% load i18n %}
{% block title %}{% trans "New password set" %}{% endblock %}
{% block header %}{% trans "New password set" %}{% endblock %}
{% block byline %}{% trans "You can now use your new password to login now" %}{% endblock %}
{% block login_status%}{% endblock %}
{% block content %}
<div style="padding: 40px;">
<p>{% trans "Your password has successfully been reset. You can use it right now on the login page." %}</p>
</div>
{% endblock %}
{% extends "password_reset/base.html" %}
{% load i18n %}
{% block title %}{% trans "Account recovery" %}{% endblock %}
{% block header %}{% trans "Account recovery" %}{% endblock %}
{% block byline %}{% endblock %}
{% block login_status%}{% endblock %}
{% block content %}
{% if invalid %}{% url "password_reset_recover" as recovery_url %}
<div style="padding: 40px;">
<p>{% blocktrans %}Sorry, this password reset link is invalid. You can still <a href="{{ recovery_url }}">request a new one</a>.{% endblocktrans %}</p>
</div>
{% else %}
<form method="post" action="{% url "password_reset_reset" token %}">
<p>{% blocktrans %}Hi, <strong>{{ username }}</strong>. Please choose your new password.{% endblocktrans %}</p>
{% csrf_token %}
{{ form.as_p }}
<p><input type="submit" value="{% trans "Set new password" %}"></p>
</form>
{% endif %}
{% endblock %}
{% extends "password_reset/base.html" %}
{% load i18n %}
{% block title %}{% trans "Account recovery email sent" %}{% endblock %}
{% block header %}{% trans "Recovery email sent" %}{% endblock %}
{% block byline %}{% trans "An email was sent to your registered recovery email address" %}{% endblock %}
{% block login_status%}{% endblock %}
{% block content %}
<div style="padding: 40px;">
<p>
{% blocktrans with ago=timestamp|timesince %}An email was sent to <strong>{{ email }}</strong>.{% endblocktrans %}
</p>
<p>Use the link in it to set your new password.</p>
</div>
{% endblock %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment