WIP: password change/reset forms

This commit is contained in:
Skia
2015-11-25 17:03:18 +01:00
parent 04bbf0db5b
commit 6e54fa075e
5 changed files with 75 additions and 16 deletions

View File

@ -0,0 +1,14 @@
{% extends "core/base.html" %}
{% block content %}
{% if form.errors %}
<p>Your passwords didn't match. Please try again.</p>
{% endif %}
<form method="post" action="{% url 'core:password_change' %}">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="Change!" />
</form>
{% endblock %}

View File

@ -0,0 +1,12 @@
{% extends "core/base.html" %}
{% block content %}
You successfully changed your password!
{% if form.errors %}
<p>Your passwords didn't match. Please try again.</p>
{% endif %}
{% endblock %}