Opened 17 years ago
Closed 17 years ago
#6943 closed (fixed)
Multiple emails in admin can cause error
Reported by: | Michael Newman | Owned by: | Michael Newman |
---|---|---|---|
Component: | contrib.admin | Version: | newforms-admin |
Severity: | Keywords: | admin, login, nfa | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
If you have multiple users who have the same e-mail address and one of them try to log into the admin site with their email address Django throws an exception. This is a extreme fringe case, but I have been biten by it due to editors who don't know what they are doing.
I applied a patch that doesn't return a username from the e-mail address. I can't find tests to add a line that would test for this. This patch is applied to Newforms Admin, but the two lines could be applied to trunk without a problem.
Attachments (3)
Change History (9)
by , 17 years ago
Attachment: | 6943-admin-multiple-emails.diff added |
---|
comment:1 by , 17 years ago
Keywords: | nfa added |
---|---|
Needs tests: | set |
Owner: | changed from | to
Status: | new → assigned |
by , 17 years ago
Attachment: | 6943-nfa-admin-multiple-emails.diff added |
---|
New patch against New-Forms Admin r7612, with tests!
comment:2 by , 17 years ago
Version: | SVN → newforms-admin |
---|
comment:3 by , 17 years ago
Triage Stage: | Unreviewed → Accepted |
---|
follow-up: 5 comment:4 by , 17 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
comment:5 by , 17 years ago
Needs tests: | unset |
---|
by , 17 years ago
Attachment: | 6943-nfa-admin-multiple-emails.2.diff added |
---|
New patch addressing the idea of e-mail address guessing.
comment:6 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
simple two line patch to catch the exception and return a generic message