parent
4a196fadd3
commit
f60444c231
@ -1,17 +1,34 @@ |
||||
{% extends 'base.html' %} |
||||
|
||||
{% extends "base.html" %} |
||||
|
||||
{% block title %}{{ title }}{% endblock %} |
||||
{% block content_title %}<h1>{{ title }}</h1>{% endblock %} |
||||
{% 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 %} |
||||
|
||||
{% if validlink %} |
||||
|
||||
<p>Please enter your new password twice so we can verify you typed it in correctly.</p> |
||||
|
||||
<form method="post">{% csrf_token %} |
||||
<fieldset class="module aligned"> |
||||
<div class="form-row field-password1"> |
||||
{{ form.new_password1.errors }} |
||||
<label for="id_new_password1">New password:</label> |
||||
{{ form.new_password1 }} |
||||
</div> |
||||
<div class="form-row field-password2"> |
||||
{{ form.new_password2.errors }} |
||||
<label for="id_new_password2">Confirm password:</label> |
||||
{{ form.new_password2 }} |
||||
</div> |
||||
<input type="submit" value="Change my password"> |
||||
</fieldset> |
||||
</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 %} |
||||
|
||||
@ -1,2 +1,3 @@ |
||||
Someone asked for password reset for email {{ email }}. Follow the link below: |
||||
Someone asked for password reset for email {{ email }}. |
||||
Follow the link below: |
||||
{{ protocol}}://{{ domain }}{% url 'news:password_reset_confirm' uidb64=uid token=token %} |
||||
|
||||
@ -0,0 +1 @@ |
||||
Password reset request |
||||
Loading…
Reference in new issue