Skip to content

Commit e02738b

Browse files
philgyfordfelixxm
authored andcommitted
Refs #31913 -- Corrected comment in PasswordResetTokenGenerator.
Follow up to da4923e.
1 parent 20d38fd commit e02738b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django/contrib/auth/tokens.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def _make_token_with_timestamp(self, user, timestamp, legacy=False):
7373
# legacy argument and replace with:
7474
# algorithm=self.algorithm,
7575
algorithm='sha1' if legacy else self.algorithm,
76-
).hexdigest()[::2] # Limit to 20 characters to shorten the URL.
76+
).hexdigest()[::2] # Limit to shorten the URL.
7777
return "%s-%s" % (ts_b36, hash_string)
7878

7979
def _make_hash_value(self, user, timestamp):

0 commit comments

Comments
 (0)