fix: forgot password email subject and update template (#1233)

This commit is contained in:
pablohashescobar 2023-06-07 09:09:59 +05:30 committed by GitHub
parent 40d2990565
commit c05eb9e240
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 7 deletions

View File

@ -21,7 +21,7 @@ def forgot_password(first_name, email, uidb64, token, current_site):
from_email_string = settings.EMAIL_FROM from_email_string = settings.EMAIL_FROM
subject = f"Verify your Email!" subject = f"Reset Your Password - Plane"
context = { context = {
"first_name": first_name, "first_name": first_name,

View File

@ -1,11 +1,21 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<p>
<body>
<p>
Dear {{first_name}},<br /><br /> Dear {{first_name}},<br /><br />
Here is the link to reset your password. We received a request to reset your password for your Plane account.
<br />
Link: {{forgot_password_url}}
<br /><br /> <br /><br />
Thank you To proceed with resetting your password, please click on the link below:
</p> <br />
<a href="{{forgot_password_url}}">{{forgot_password_url}}</a>
<br /><br />
If you didn't request to reset your password, please ignore this email. Your account will remain secure.
<br /><br />
If you have any questions or need further assistance, please contact our support team.
<br /><br />
Thank you for using Plane.
</p>
</body>
</html> </html>