diff --git a/oser_backend/serializers.py b/oser_backend/serializers.py index 576a486df57cd73a4b7479200552c27528ddfb8a..d1535112a9014e66d3ef565658b270c84ff9fe32 100644 --- a/oser_backend/serializers.py +++ b/oser_backend/serializers.py @@ -28,7 +28,7 @@ class PasswordResetSerializer(serializers.Serializer): ###### USE YOUR TEXT FILE ###### 'email_template_name': 'email-reset-template.txt', - + 'subject_template_name': 'subject-reset-template.txt', 'request': request, } self.reset_form.save(**opts) \ No newline at end of file diff --git a/templates/email-reset-template.txt b/templates/email-reset-template.txt index f222d5919241d2b60062eb0d6451bd619c690fb4..fa93338fffb9cadb63eafa2accd003a1f2a0f2fb 100644 --- a/templates/email-reset-template.txt +++ b/templates/email-reset-template.txt @@ -1,6 +1,6 @@ {% load i18n %}{% autoescape off %} -{% blocktrans %}Vous recevez ce courriel car vous avez demander à -réinitialiser le mot de passe de votre compte Oser.{% endblocktrans %} +{% blocktrans %}Vous recevez ce courriel car vous avez demandé à +réinitialiser le mot de passe de votre compte OSER.{% endblocktrans %} {% trans "Please go to the following page and choose a new password:" %} {% block reset_link %} @@ -10,6 +10,6 @@ http://localhost:4200{% url 'password_reset_confirm' uidb64=uid token=token %} {% trans "Thanks for using our site!" %} -{% blocktrans %}The Oser team{% endblocktrans %} +{% blocktrans %}La Team OSER {% endblocktrans %} {% endautoescape %} \ No newline at end of file diff --git a/templates/subject-reset-template.txt b/templates/subject-reset-template.txt new file mode 100644 index 0000000000000000000000000000000000000000..88499bb15e4f974b37963428650e3189f6675b72 --- /dev/null +++ b/templates/subject-reset-template.txt @@ -0,0 +1,3 @@ +{% load i18n %}{% autoescape off %} +{% blocktrans %}Réinitialisation du mot de passe de votre compte OSER{% endblocktrans %} +{% endautoescape %}