Refs #31913 -- Corrected comment in PasswordResetTokenGenerator.

Follow up to da4923ea87.
This commit is contained in:
Phil Gyford 2020-08-27 10:17:56 +01:00 committed by Mariusz Felisiak
parent 20d38fd759
commit e02738bf55
1 changed files with 1 additions and 1 deletions

View File

@ -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):