#34429: Allow to set unusable password via admin UI
---------------------------------+----------------------------------------
Reporter: Tobias Bengfort | Owner: Fabian Braun
Type: New feature | Status: assigned
Component: contrib.auth | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+----------------------------------------
Changes (by Fabian Braun):
* has_patch: 0 => 1
Old 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.
New 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.
[https://github.com/django/django/pull/16942 PR]
--
Comment:
Patch here: https://github.com/django/django/pull/16942
--
Ticket URL: <https://code.djangoproject.com/ticket/34429#comment:7>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/010701888c0ffe57-80713b2d-f50a-435f-9613-33da935dabf8-000000%40eu-central-1.amazonses.com.