Activer reset du mot de passe
This commit is contained in:
parent
cf17495076
commit
086b12ef79
6 changed files with 119 additions and 3 deletions
32
templates/registration/password_reset_form.html
Normal file
32
templates/registration/password_reset_form.html
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{% extends "base.html" %}
|
||||
{% load i18n static %}
|
||||
|
||||
{% block title %}{% if form.email.errors %}{% translate "Error:" %} {% endif %}{{ block.super }}{% endblock %}
|
||||
{% block extrastyle %}{{ block.super }}<link rel="stylesheet" href="{% static "admin/css/forms.css" %}">{% endblock %}
|
||||
{% block breadcrumbs %}
|
||||
<div class="breadcrumbs">
|
||||
<a href="{% url 'admin:index' %}">{% translate 'Home' %}</a>
|
||||
› {% translate 'Password reset' %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<p>{% translate 'Forgotten your password? Enter your email address below, and we’ll email instructions for setting a new one.' %}</p>
|
||||
|
||||
<form method="post">{% csrf_token %}
|
||||
<fieldset class="module aligned mt-3">
|
||||
<div class="form-row field-email">
|
||||
{{ form.email.errors }}
|
||||
<div class="flex-container">
|
||||
<label for="id_email">{% translate 'Email address:' %}</label>
|
||||
{{ form.email }}
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<div class="submit-row mt-3">
|
||||
<input type="submit" value="{% translate 'Reset my password' %}">
|
||||
</div>
|
||||
</form>
|
||||
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue