My usecase is using the token generator to build one time login links with
timeouts different from the password reset process's timeout.
--
Ticket URL: <https://code.djangoproject.com/ticket/30423>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* owner: nobody => Antoine Humeau
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/30423#comment:1>
* has_patch: 0 => 1
Comment:
Pull request: [https://github.com/django/django/pull/11302]
--
Ticket URL: <https://code.djangoproject.com/ticket/30423#comment:2>
* status: assigned => closed
* version: 2.2 => master
* resolution: => wontfix
Comment:
Thanks for the ticket, however `PasswordResetTokenGenerator` is not a
universal token generator. I wouldn't use it for other tokens. You can use
`TimestampSigner` to create one time login links (see
[https://docs.djangoproject.com/en/2.2/topics/signing/#module-
django.core.signing Cryptographic signing]) or subclass
`PasswordResetTokenGenerator` (probably you should override also
`_make_hash_value()`).
Related with #19871.
--
Ticket URL: <https://code.djangoproject.com/ticket/30423#comment:3>
Comment (by Iuri de Silvio):
The issue this PR tried to fix was the difficult to subclass
`PasswordResetTokenGenerator` with custom timeout to support the solution
suggested by @felixxm.
--
Ticket URL: <https://code.djangoproject.com/ticket/30423#comment:4>