mirror of https://github.com/django/django.git
Refs #31913 -- Corrected comment in PasswordResetTokenGenerator.
Follow up to da4923ea87
.
This commit is contained in:
parent
20d38fd759
commit
e02738bf55
|
@ -73,7 +73,7 @@ class PasswordResetTokenGenerator:
|
|||
# legacy argument and replace with:
|
||||
# algorithm=self.algorithm,
|
||||
algorithm='sha1' if legacy else self.algorithm,
|
||||
).hexdigest()[::2] # Limit to 20 characters to shorten the URL.
|
||||
).hexdigest()[::2] # Limit to shorten the URL.
|
||||
return "%s-%s" % (ts_b36, hash_string)
|
||||
|
||||
def _make_hash_value(self, user, timestamp):
|
||||
|
|
Loading…
Reference in New Issue