#33687: Add option to set unusable password to changepassword
--------------------------------+--------------------------------------
Reporter: Vlastimil Zíma | Owner: nobody
Type: New feature | Status: closed
Component: contrib.auth | Version: dev
Severity: Normal | Resolution: wontfix
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------+--------------------------------------
Changes (by Mariusz Felisiak):
* status: new => closed
* resolution: => wontfix
Comment:
Thanks for this ticket, however the `changepassword` command was never
intended to cover all available options. You can create a custom command
in your project or use a small standalone script instead:
{{{
UserModel = get_user_model()
user =
UserModel._default_manager.db_manager('default').get(username=username)
user.set_password(new_password)
user.set_unusable_password()
user.save()
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/33687#comment:1>
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/01070180a7b8202e-c6290efa-e32b-4b99-bbab-3e4c18d36fb2-000000%40eu-central-1.amazonses.com.