From c05eb9e240dbb74a980eb58e2e3e3172ecc6a972 Mon Sep 17 00:00:00 2001 From: pablohashescobar <118773738+pablohashescobar@users.noreply.github.com> Date: Wed, 7 Jun 2023 09:09:59 +0530 Subject: [PATCH] fix: forgot password email subject and update template (#1233) --- .../plane/bgtasks/forgot_password_task.py | 2 +- .../emails/auth/forgot_password.html | 22 ++++++++++++++----- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/apiserver/plane/bgtasks/forgot_password_task.py b/apiserver/plane/bgtasks/forgot_password_task.py index 485fef000..687e4f976 100644 --- a/apiserver/plane/bgtasks/forgot_password_task.py +++ b/apiserver/plane/bgtasks/forgot_password_task.py @@ -21,7 +21,7 @@ def forgot_password(first_name, email, uidb64, token, current_site): from_email_string = settings.EMAIL_FROM - subject = f"Verify your Email!" + subject = f"Reset Your Password - Plane" context = { "first_name": first_name, diff --git a/apiserver/templates/emails/auth/forgot_password.html b/apiserver/templates/emails/auth/forgot_password.html index 14a15e5b2..76b8903d7 100644 --- a/apiserver/templates/emails/auth/forgot_password.html +++ b/apiserver/templates/emails/auth/forgot_password.html @@ -1,11 +1,21 @@ -
+ +
+
Dear {{first_name}},
- Here is the link to reset your password.
-
- Link: {{forgot_password_url}}
+ We received a request to reset your password for your Plane account.
- Thank you
-