diff --git a/authens/templates/authens/pwd_reset.html b/authens/templates/authens/pwd_reset.html new file mode 100644 index 0000000..f999dda --- /dev/null +++ b/authens/templates/authens/pwd_reset.html @@ -0,0 +1,16 @@ +{% extends "authens/base.html" %} +{% load i18n %} + +{% block container-title %} +{% trans "Réinitialisation du mot de passe" %} +{% endblock %} + +{% block content %} + {% for error in form.non_field_errors %} +

{{ error }}

+ {% endfor %} + +
+ {% include "authens/form_full_snippet.html" with submit_text="Valider" %} +
+{% endblock %} diff --git a/authens/templates/authens/pwd_reset_confirm.html b/authens/templates/authens/pwd_reset_confirm.html new file mode 100644 index 0000000..c80d59e --- /dev/null +++ b/authens/templates/authens/pwd_reset_confirm.html @@ -0,0 +1,16 @@ +{% extends "authens/base.html" %} +{% load i18n %} + +{% block container-title %} +{% trans "Nouveau mot de passe" %} +{% endblock %} + +{% block content %} + {% for error in form.non_field_errors %} +

{{ error }}

+ {% endfor %} + +
+ {% include "authens/form_full_snippet.html" with submit_text="Valider" %} +
+{% endblock %} diff --git a/authens/templates/authens/pwd_reset_email.txt b/authens/templates/authens/pwd_reset_email.txt new file mode 100644 index 0000000..a0ed323 --- /dev/null +++ b/authens/templates/authens/pwd_reset_email.txt @@ -0,0 +1,12 @@ +{% load i18n %}{% autoescape off %} +{% blocktrans %}Quelqu'un (probablement vous) a demandé la réinitialisation du mot de passe associé à cette addresse sur {{ site_name }}.{% endblocktrans %} + +{% blocktrans %}S'il s'agit bien de vous, vous pouvez vous rendre à l'adresse suivante pour en choisir un nouveau : {% endblocktrans %} +{% block reset_link %} +{{ protocol }}://{{ domain }}{% url "authens:reset.pwd.confirm" uidb64=uid token=token %} +{% endblock %} +{% blocktrans with username=user.get_username %}Au cas où, votre nom d'utilisateur est le suivant : {{ username }}{% endblocktrans %} + +{% block signature %}{% blocktrans %}L'équipe {{site_name}}{% endblocktrans %}{% endblock %} + +{% endautoescape %} \ No newline at end of file diff --git a/authens/templates/authens/pwd_reset_subject.txt b/authens/templates/authens/pwd_reset_subject.txt new file mode 100644 index 0000000..8d48712 --- /dev/null +++ b/authens/templates/authens/pwd_reset_subject.txt @@ -0,0 +1 @@ +Réinitialisation de votre mot de passe {{site_name}} \ No newline at end of file