#31832 closed New feature (duplicate)
PasswordResetTokenGenerator is difficult to extend
| Reported by: | Iuri de Silvio | Owned by: | Iuri de Silvio |
|---|---|---|---|
| Component: | contrib.auth | Version: | dev |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
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.
Change History (3)
comment:1 by , 5 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:2 by , 5 years ago
| Resolution: | → duplicate |
|---|---|
| Status: | assigned → closed |
| Type: | Cleanup/optimization → New feature |
Note:
See TracTickets
for help on using tickets.
Duplicate of #30423.