Custom User without username and with USERNAME_FIELD = 'email', but still see username error message at the admin login page
|Reported by:||un33k||Owned by:||nobody|
|Severity:||Release blocker||Keywords:||custom user, USERNAME_FIELD, username|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Have a custom user with no username and have set USERNAME_FIELD = 'email'.
All works great, however, the error messages are still pointing to the username even though the custom user had no username field.
Here is where the error message comes from.
ERROR_MESSAGE = ugettext_lazy("Please enter the correct username and password "
"for a staff account. Note that both fields are case-sensitive.")
Change History (11)
Changed 4 years ago by un33k
comment:1 Changed 4 years ago by aaugustin
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Accepted
Changed 4 years ago by aaugustin
comment:2 Changed 4 years ago by aaugustin
- Has patch set
- Triage Stage changed from Accepted to Ready for checkin
comment:6 Changed 4 years ago by Russell Keith-Magee <russell@…>
- Resolution set to fixed
- Status changed from new to closed