Updating User's email in Admin fails if email already exists
|Reported by:||Val Neekman||Owned by:||nobody|
|Severity:||Normal||Keywords:||duplicate email UserChangeForm Admin|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
django/contrib/auth/hashers.py", line 135, in identify_hasher
if len(encoded) == 32 and '$' not in encoded:
TypeError: object of type 'NoneType' has no len()
The above is a simple scenario just to create the error. In real life, with thousands of emails, one wouldn't know if an email is duplicate or not.
An error message could be raised here instead of the above error message that is not that intuitive for the above case.