parent
9525b61e8b
commit
70ca6aeab6
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,7 @@ |
|||||||
|
{% extends 'base.html' %} |
||||||
|
|
||||||
|
{% block content %} |
||||||
|
<p> |
||||||
|
Your password has been set. You may go ahead and <a href="{% url 'news:signin' %}">sign in</a> now. |
||||||
|
</p> |
||||||
|
{% endblock %} |
||||||
@ -0,0 +1,17 @@ |
|||||||
|
{% extends 'base.html' %} |
||||||
|
|
||||||
|
{% block content %} |
||||||
|
{% if validlink %} |
||||||
|
<h3>Change password</h3> |
||||||
|
<form method="post"> |
||||||
|
{% csrf_token %} |
||||||
|
{{ form.as_p }} |
||||||
|
<button class="primary_button" type="submit">Change password</button> |
||||||
|
</form> |
||||||
|
{% else %} |
||||||
|
<p> |
||||||
|
The password reset link was invalid, possibly because it has already been used. |
||||||
|
Please request a new password reset. |
||||||
|
</p> |
||||||
|
{% endif %} |
||||||
|
{% endblock %} |
||||||
@ -0,0 +1,9 @@ |
|||||||
|
<!-- templates/registration/password_reset_done.html --> |
||||||
|
{% extends 'base.html' %} |
||||||
|
|
||||||
|
{% block title %}Email Sent{% endblock %} |
||||||
|
|
||||||
|
{% block content %} |
||||||
|
<h1>Check your inbox.</h1> |
||||||
|
<p>We've emailed you instructions for setting your password. You should receive the email shortly!</p> |
||||||
|
{% endblock %} |
||||||
@ -0,0 +1 @@ |
|||||||
|
pouet pouet |
||||||
@ -0,0 +1,15 @@ |
|||||||
|
<!-- templates/registration/password_reset_form.html --> |
||||||
|
{% extends 'base.html' %} |
||||||
|
|
||||||
|
{% block title %}Forgot Your Password?{% endblock %} |
||||||
|
|
||||||
|
{% block content %} |
||||||
|
<h1>Forgot your password?</h1> |
||||||
|
<p>Enter your email address below, and we'll email instructions for setting a new one.</p> |
||||||
|
|
||||||
|
<form method="POST"> |
||||||
|
{% csrf_token %} |
||||||
|
{{ form.as_p }} |
||||||
|
<button class="primary_button" type="submit">Send me instructions!</button> |
||||||
|
</form> |
||||||
|
{% endblock %} |
||||||
@ -0,0 +1,2 @@ |
|||||||
|
Someone asked for password reset for email {{ email }}. Follow the link below: |
||||||
|
{{ protocol}}://{{ domain }}{% url 'news:password_reset_confirm' uidb64=uid token=token %} |
||||||
Binary file not shown.
Loading…
Reference in new issue