Opened 21 months ago
Last modified 4 months ago
#34429 closed New feature
Allow to set unusable password via admin UI — at Initial Version
Reported by: | Tobias Bengfort | Owned by: | nobody |
---|---|---|---|
Component: | contrib.auth | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Carlton Gibson, Sarah Boyce | Triage Stage: | Ready for checkin |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | yes |
Easy pickings: | no | UI/UX: | yes |
Description
Django allows to have user accounts with unusable passwords, either because authentication uses a different mechanism (e.g. LDAP) or because the User object is still needed (e.g. because it is referenced by a ForeignKey) but the user should no longer be allowed to log in.
However, this functionality is not available from the admin UI. When creating a user or changing the password I am forced to enter a password.
I propose to make the password fields optional in the Admin UI and set an unusable password if they are blank.
I am sorry if this has been discussed before. I looked before posting this but could not find anything.