#31832: PasswordResetTokenGenerator is difficult to extend
------------------------------------------------+------------------------
               Reporter:  Iuri de Silvio        |          Owner:  nobody
                   Type:  Cleanup/optimization  |         Status:  new
              Component:  contrib.auth          |        Version:  master
               Severity:  Normal                |       Keywords:
           Triage Stage:  Unreviewed            |      Has patch:  0
    Needs documentation:  0                     |    Needs tests:  0
Patch needs improvement:  0                     |  Easy pickings:  0
                  UI/UX:  0                     |
------------------------------------------------+------------------------
 The `PasswordResetTokenGenerator` is even called `default_token_generator`
 but it is not easier to extend because it has a hard coded
 `settings.PASSWORD_RESET_TIMEOUT`.

 It would be great to reuse this code, just changing `_make_hash_value`,
 `key_salt` and `timeout`.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31832>
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/053.e7e8ca4d1ef9eaad283a948ab2dc0f6e%40djangoproject.com.

Reply via email to