#33296: Allow manage.py changepassword to use DJANGO_SUPERUSER_PASSWORD
-------------------------------------+-------------------------------------
     Reporter:  johnthagen           |                    Owner:  nobody
         Type:  New feature          |                   Status:  closed
    Component:  contrib.auth         |                  Version:  3.2
     Severity:  Normal               |               Resolution:  wontfix
     Keywords:  django-admin         |             Triage Stage:
  changepassword                     |  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 I'm skeptical. We've already had doubts
 about using `DJANGO_SUPERUSER_PASSWORD` in the `createsuperuser`, see
 #27801. In the end we accepted #27801 because creating a new superuser can
 be complicated which is not the case in changing a password. You can
 create a custom command in your project or use a small standalone script:
 {{{
 UserModel = get_user_model()
 user =
 UserModel._default_manager.db_manager('default').get(username=username)
 user.set_password(new_password)
 }}}

 Please first start a discussion on the DevelopersMailingList, where you'll
 reach a wider audience and see what other think, and
 [https://docs.djangoproject.com/en/stable/internals/contributing/bugs-and-
 features/#requesting-features follow the guidelines with regards to
 requesting features].

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33296#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/068.76518bd8e2a3b761b400599c7da745b1%40djangoproject.com.

Reply via email to