-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
As discussed in #1291, the ResetPassword form only works for primary email addresses. This is confusing for users who try to reset their password using a non-primary email address (i.e. they do not receive a password reset email, and they are unable to register because the registration form rejects the email address). This update addresses the issue by informing the user of the primary email address linked to their account. Now, when a user tries to reset their password using a secondary email address, they receive the following email: Subject: Primary email address on DataShare From: PhysioNet Automated System <[email protected]> To: [email protected] Date: Sun, 12 Nov 2023 11:27:57 -0000 You are receiving this email because you requested a password reset for your account at DataShare. Only your primary email address can be used for resetting your password. Your primary email address is [email protected]. Regards The DataShare Team
- Loading branch information
Showing
3 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
physionet-django/user/templates/user/email/notify_primary_email.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{% load i18n %}{% autoescape off %}{% filter wordwrap:70 %} | ||
You are receiving this email because you requested a password reset for your account at {{ SITE_NAME }}. | ||
|
||
Only your primary email address can be used for resetting your password. Your primary email address is {{ primary_email }}. | ||
|
||
Regards | ||
The {{ SITE_NAME }} Team | ||
{% endfilter %}{% endautoescape %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters