Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#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 Iuri de Silvio, 4 years ago

Owner: changed from nobody to Iuri de Silvio
Status: newassigned

comment:2 by Mariusz Felisiak, 4 years ago

Resolution: duplicate
Status: assignedclosed
Type: Cleanup/optimizationNew feature

Duplicate of #30423.

comment:3 by Iuri de Silvio, 4 years ago

Thanks! I did not found this ticket on my first research.

Note: See TracTickets for help on using tickets.
Back to Top