mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-09 19:40:19 +00:00
Make all the lost password procedure
This commit is contained in:
@ -2,10 +2,11 @@
|
||||
|
||||
{% block content %}
|
||||
|
||||
You successfully changed your password!
|
||||
|
||||
{% if form.errors %}
|
||||
<p>Your passwords didn't match. Please try again.</p>
|
||||
{% else %}
|
||||
You successfully changed your password!
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
|
9
core/templates/core/password_reset.html
Normal file
9
core/templates/core/password_reset.html
Normal file
@ -0,0 +1,9 @@
|
||||
{% extends "core/base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<form method="post" action="">
|
||||
{% csrf_token %}
|
||||
{{ form.as_p }}
|
||||
<input type="submit" value="Reset!" />
|
||||
</form>
|
||||
{% endblock %}
|
8
core/templates/core/password_reset_complete.html
Normal file
8
core/templates/core/password_reset_complete.html
Normal file
@ -0,0 +1,8 @@
|
||||
{% extends "core/base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<p>You successfully reset your password!</p>
|
||||
<a href="{% url 'core:login' %}">Login</a>
|
||||
{% endblock %}
|
||||
|
||||
|
10
core/templates/core/password_reset_confirm.html
Normal file
10
core/templates/core/password_reset_confirm.html
Normal file
@ -0,0 +1,10 @@
|
||||
{% extends "core/base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<form method="post" action="">
|
||||
{% csrf_token %}
|
||||
{{ form.as_p }}
|
||||
<input type="submit" value="Reset" />
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
15
core/templates/core/password_reset_email.html
Normal file
15
core/templates/core/password_reset_email.html
Normal file
@ -0,0 +1,15 @@
|
||||
{% load i18n %}{% autoescape off %}
|
||||
{% blocktrans %}You're receiving this email because you requested a password reset for your user account at {{ site_name }}.{% endblocktrans %}
|
||||
|
||||
{% trans "Please go to the following page and choose a new password:" %}
|
||||
{% block reset_link %}
|
||||
{{ protocol }}://{{ domain }}{% url 'core:password_reset_confirm' uidb64=uid token=token %}
|
||||
{% endblock %}
|
||||
{% trans "Your username, in case you've forgotten:" %} {{ user.get_username }}
|
||||
|
||||
{% trans "Thanks for using our site!" %}
|
||||
|
||||
{% blocktrans %}The {{ site_name }} team{% endblocktrans %}
|
||||
|
||||
{% endautoescape %}
|
||||
|
Reference in New Issue
Block a user