Skip to content
Snippets Groups Projects
Commit 5c1b6a3d authored by Fredrik Jonsson's avatar Fredrik Jonsson
Browse files

Improve the template for password reset form to alert users of invalid (old) links.

parent 3858f86b
No related branches found
No related tags found
No related merge requests found
{% extends "base.html" %} {% extends "base.html" %}
{% load i18n %} {% load i18n %}
{% block header_modifier %}header--light-bg{% endblock %} {% block header_modifier %}header--light-bg{% endblock %}
{% block page_title %}Set your new password{% endblock %} {% block page_title %}{{ title }}{% endblock %}
{% block content %} {% block content %}
<div class="wrapper wrapper--small wrapper--bottom-space"> <div class="wrapper wrapper--small wrapper--bottom-space">
{% if validlink %}
<p>{% trans "Please enter your new password twice so we can verify you typed it in correctly." %}</p>
<form class="form" method="post" novalidate> <form class="form" method="post" novalidate>
{% if form.non_field_errors %} {% if form.non_field_errors %}
<ul class="errorlist"> <ul class="errorlist">
...@@ -31,5 +33,8 @@ ...@@ -31,5 +33,8 @@
<button class="link link--button-secondary" type="submit">{% trans 'Reset password' %}</button> <button class="link link--button-secondary" type="submit">{% trans 'Reset password' %}</button>
</form> </form>
{% else %}
<p>{% trans "The password reset link was invalid, possibly because it has already been used. Please request a new password reset." %}</p>
{% endif %}
</div> </div>
{% endblock %} {% endblock %}
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