--
Ticket URL: <https://code.djangoproject.com/ticket/33758>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* owner: nobody => Sosshi
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/33758#comment:1>
Comment (by Carlton Gibson):
Hi. Erm... I'm not sure what to say here.
> The usage of ... is limited ...
Yes, it is. `make_random_password()` is essentially not used as tall in
the Django codebase.
An 11 year old comment from Russell says why:
> The only reason I can think of to generate a random password would be to
send it in cleartext. To which, the answer is a definitive No. Not ever.
https://code.djangoproject.com/ticket/15639#comment:2
I think we should probably deprecate and remove this method, rather than
try and make it more complex 🤔
--
Ticket URL: <https://code.djangoproject.com/ticket/33758#comment:2>
* status: assigned => closed
* resolution: => wontfix
* component: Uncategorized => contrib.auth
* type: Uncategorized => Cleanup/optimization
Comment:
> I think we should probably deprecate and remove this method, rather than
try and make it more complex 🤔
Totally agreed, it's unused since
fcd837cd0f9b2c706bc49af509628778d442bb3f. See #33764.
--
Ticket URL: <https://code.djangoproject.com/ticket/33758#comment:3>
* type: Cleanup/optimization => Uncategorized
* component: contrib.auth => Uncategorized
Comment:
One could imagine use cases for this function. For example a website that
automatically creates accounts and sends out the plain passwords (through
email, or something more secure) for a first log in - but then forces
password change on first use.
But I agree with Carlton (and Russell) that Django shouldn't "encourage"
this, since the implementation then requires some special attention.
+1 for deprecating this function
--
Ticket URL: <https://code.djangoproject.com/ticket/33758#comment:4>
* type: Uncategorized => Cleanup/optimization
* component: Uncategorized => contrib.auth
Comment:
Oopsie
--
Ticket URL: <https://code.djangoproject.com/ticket/33758#comment:5>
Comment (by Carlton Gibson):
Ah, thanks Mariusz.
--
Ticket URL: <https://code.djangoproject.com/ticket/33758#comment:9>