From 075f98e6e5c957cd6a23b0b989f9327d4a491a11 Mon Sep 17 00:00:00 2001 From: Sam Date: Sat, 11 Jul 2020 19:35:20 +0200 Subject: [PATCH] API - display password reset link expiration delay in email --- .../password_reset_request/en/body.html | 4 ++-- .../password_reset_request/en/body.txt | 2 +- .../password_reset_request/fr/body.html | 5 ++--- .../password_reset_request/fr/body.txt | 2 +- .../template_results/password_reset_request.py | 13 ++++++------- .../fittrackee_api/tests/test_email.py | 1 + .../test_email_template_password_request.py | 3 +++ fittrackee_api/fittrackee_api/users/auth.py | 5 +++++ fittrackee_api/fittrackee_api/users/utils.py | 11 +++++++++++ fittrackee_api/poetry.lock | 17 ++++++++++++++++- fittrackee_api/pyproject.toml | 1 + 11 files changed, 49 insertions(+), 15 deletions(-) diff --git a/fittrackee_api/fittrackee_api/email/templates/password_reset_request/en/body.html b/fittrackee_api/fittrackee_api/email/templates/password_reset_request/en/body.html index 01dc5842..d8915ab6 100644 --- a/fittrackee_api/fittrackee_api/email/templates/password_reset_request/en/body.html +++ b/fittrackee_api/fittrackee_api/email/templates/password_reset_request/en/body.html @@ -194,7 +194,7 @@ - Use this link to reset your password. The link is only valid for 24 hours. + Use this link to reset your password. The link is only valid for {{ expiration_delay }}.