From e02738bf55f66939be63f75d4fdcdc2ebc36e435 Mon Sep 17 00:00:00 2001 From: Phil Gyford Date: Thu, 27 Aug 2020 10:17:56 +0100 Subject: [PATCH] Refs #31913 -- Corrected comment in PasswordResetTokenGenerator. Follow up to da4923ea87124102aae4455e947ce24599c0365b. --- django/contrib/auth/tokens.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/auth/tokens.py b/django/contrib/auth/tokens.py index 0240370703..93e2d71af2 100644 --- a/django/contrib/auth/tokens.py +++ b/django/contrib/auth/tokens.py @@ -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):