Intuition about (potentially) sending multiple password reset emails

31 views
Skip to first unread message

Julian Gindi

unread,
Dec 3, 2014, 2:49:32 PM12/3/14
to django...@googlegroups.com
I'm working with Django's built-in password reset capabilities, and noticed this curious line...


can someone explain the intuition behind this line? It seems weird to potentially send multiple password reset emails. Is this expected behavior? 

Karen Tracey

unread,
Dec 3, 2014, 2:55:31 PM12/3/14
to django...@googlegroups.com
The password reset form asks for an email address, not username. (This is assuming default Django User model.) The email address may be associated with more than a single User on the system -- there is no requirement (by default) that the user email address be unique. So a password reset email is generated for each matching user, and the information presented in each email includes the specific username for which the reset link applies.

Karen

Reply all
Reply to author
Forward
0 new messages