Skip to content

Commit a91c267

Browse files
committed
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.
1 parent 298b459 commit a91c267

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pgweb/account/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ def resetpwd(request):
269269
token = default_token_generator.make_token(u)
270270
send_template_mail(
271271
settings.ACCOUNTS_NOREPLY_FROM,
272-
form.cleaned_data['email'],
272+
u.email,
273273
'Password reset for your postgresql.org account',
274274
'account/password_reset_email.txt',
275275
{

0 commit comments

Comments
 (0)