Skip to content

Commit

Permalink
Removed: confusing OTP language in email templates (#363)
Browse files Browse the repository at this point in the history
  • Loading branch information
signebedi committed Oct 17, 2024
1 parent a4f1b0f commit 1422118
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libreforms_fastapi/utils/jinja_emails.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def __str__(self):
cont: |
<html>
<body>
<p>This email serves to notify you that the user <b>{{ user.username }}</b> has just requested to reset their password at <a href="{{ config.DOMAIN }}">{{ config.DOMAIN }}</a>. To do so, you may use the one-time password <b>{{ otp }}</b>. This one-time password will expire in three hours. If you have access to the user interface, you may reset your password at the following link: <a href="{{ config.DOMAIN }}/ui/auth/forgot_password/{{ otp }}">{{ config.DOMAIN }}/ui/auth/forgot_password/{{ otp }}</a>. If you believe this was a mistake, please contact your system administrator {{ "at" + config.HELP_EMAIL + "'>" + config.HELP_EMAIL + "</a>" if config.HELP_EMAIL else "" }}.</p>
<p>This email serves to notify you that the user <b>{{ user.username }}</b> has just requested to reset their password at <a href="{{ config.DOMAIN }}">{{ config.DOMAIN }}</a>. If you have access to the user interface, you may reset your password at the following link: <a href="{{ config.DOMAIN }}/ui/auth/forgot_password/{{ otp }}">{{ config.DOMAIN }}/ui/auth/forgot_password/{{ otp }}</a>. This link will expire in three hours. If you believe this was a mistake, please contact your system administrator {{ "at" + config.HELP_EMAIL + "'>" + config.HELP_EMAIL + "</a>" if config.HELP_EMAIL else "" }}.</p>
</body>
</html>
password_reset_complete:
Expand Down

0 comments on commit 1422118

Please sign in to comment.