Skip to content

Commit f6076ac

Browse files
committed
add missing password reset templates #1363 #1895
1 parent 9b207d4 commit f6076ac

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{% extends "account/base.html" %}
2+
{% load i18n %}
3+
{% load allauth %}
4+
{% block head_title %}
5+
{% trans "Change Password" %}
6+
{% endblock head_title %}
7+
{% block content %}
8+
{% element h1 %}
9+
{% if token_fail %}
10+
{% trans "Bad Token" %}
11+
{% else %}
12+
{% trans "Change Password" %}
13+
{% endif %}
14+
{% endelement %}
15+
{% if token_fail %}
16+
{% url 'account_reset_password' as passwd_reset_url %}
17+
{% element p %}
18+
{% blocktrans %}The password reset link was invalid, possibly because it has already been used. Please request a <a href="{{ passwd_reset_url }}">new password reset</a>.{% endblocktrans %}
19+
{% endelement %}
20+
{% else %}
21+
{% element form method="post" action=action_url %}
22+
{% slot body %}
23+
{% csrf_token %}
24+
{{ redirect_field }}
25+
{% element fields form=form %}
26+
{% endelement %}
27+
{% endslot %}
28+
{% slot actions %}
29+
{% element button type="submit" name="action" %}
30+
{% trans 'Change Password' %}
31+
{% endelement %}
32+
{% endslot %}
33+
{% endelement %}
34+
{% endif %}
35+
{% endblock content %}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{% extends "account/base.html" %}
2+
{% load i18n %}
3+
{% load allauth %}
4+
{% block head_title %}
5+
{% trans "Change Password" %}
6+
{% endblock head_title %}
7+
{% block content %}
8+
{% element h1 %}
9+
{% trans "Change Password" %}
10+
{% endelement %}
11+
{% element p %}
12+
{% trans 'Your password is now changed.' %}
13+
{% endelement %}
14+
{% endblock content %}

0 commit comments

Comments
 (0)