Currently, one would have to overwrite the _make_token_with_timestamp
method, which is not documented and likely to change, or one could misuse
modify_settings or override_settings in production.
Our usecase is, that we have a site for our employees and a self-service-
site for customers deployed on different servers and with different
SECRET_KEYs. Both sites should be able to generate Reset-Links for the
self-service site.
--
Ticket URL: <https://code.djangoproject.com/ticket/28017>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* owner: nobody => Jann Haber
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/28017#comment:1>
* has_patch: 0 => 1
* easy: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/28017#comment:2>
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/28017#comment:3>
* needs_better_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/28017#comment:4>
* needs_better_patch: 1 => 0
Comment:
I updated the PR according to Tim's comments. Thank you for the review!
--
Ticket URL: <https://code.djangoproject.com/ticket/28017#comment:5>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"c930c241f8f1ccf3a7848b843628eacdb983d70a" c930c24]:
{{{
#!CommitTicketReference repository=""
revision="c930c241f8f1ccf3a7848b843628eacdb983d70a"
Fixed #28017 -- Allowed customizing PasswordResetTokenGenerator's secret.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/28017#comment:6>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"b13af4752fa3e5e7c08163902f32260a50f69ef7" b13af47]:
{{{
#!CommitTicketReference repository=""
revision="b13af4752fa3e5e7c08163902f32260a50f69ef7"
Refs #28017 -- Added test for PasswordResetTokenGenerator subclass with a
custom secret.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/28017#comment:7>