Make all the lost password procedure

This commit is contained in:
Skia
2015-11-26 10:57:26 +01:00
parent 6e54fa075e
commit 431b81cd42
9 changed files with 77 additions and 14 deletions

View File

@ -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 %}

View 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 %}

View 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 %}

View 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 %}

View 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 %}