mirror of
https://github.com/Hopiu/django.git
synced 2026-03-21 08:20:30 +00:00
Refs #31913 -- Corrected comment in PasswordResetTokenGenerator.
Follow up to da4923ea87.
This commit is contained in:
parent
20d38fd759
commit
e02738bf55
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue