mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-09 19:40:19 +00:00
WIP: password change/reset forms
This commit is contained in:
14
core/templates/core/password_change.html
Normal file
14
core/templates/core/password_change.html
Normal 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 %}
|
12
core/templates/core/password_change_done.html
Normal file
12
core/templates/core/password_change_done.html
Normal 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 %}
|
||||
|
Reference in New Issue
Block a user