diff options
| author | Phil Gyford <phil@gyford.com> | 2020-08-27 10:17:56 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-08-27 12:57:16 +0200 |
| commit | e02738bf55f66939be63f75d4fdcdc2ebc36e435 (patch) | |
| tree | 4afdc316ab73dce92456fd296708597cd508edee | |
| parent | 20d38fd75903b58335abd8e7cc576a1f1219a4fa (diff) | |
Refs #31913 -- Corrected comment in PasswordResetTokenGenerator.
Follow up to da4923ea87124102aae4455e947ce24599c0365b.
| -rw-r--r-- | django/contrib/auth/tokens.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): |
