Send password reset emails to stored email address

Even though compared to be case insensitively equal,
there are unicode cases where they can be different.
This commit is contained in:
Magnus Hagander
2020-01-03 22:00:32 +01:00
parent 298b459d45
commit a91c267ec1

View File

@ -269,7 +269,7 @@ def resetpwd(request):
token = default_token_generator.make_token(u)
send_template_mail(
settings.ACCOUNTS_NOREPLY_FROM,
form.cleaned_data['email'],
u.email,
'Password reset for your postgresql.org account',
'account/password_reset_email.txt',
{