diff options
| author | Tim Graham <timograham@gmail.com> | 2017-09-25 08:51:02 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-09-25 09:05:00 -0400 |
| commit | 67a6ba391bbcf1a4c6bb0c42cb17e4fc0530f6d2 (patch) | |
| tree | fcfd4dfe123ba013f488380eef32cb832dda4eba /django | |
| parent | c180abe6f1f663dcd2f1ed75590eb6aa6cb94276 (diff) | |
Reverted "Fixed #28248 -- Fixed password reset tokens being valid for 1 day longer than PASSWORD_RESET_TIMEOUT_DAYS."
This reverts commit 95993a89ce6ca5f5e26b1c22b65c57dcb8c005e9.
Diffstat (limited to 'django')
| -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 f4ed175e44..eefa00c330 100644 --- a/django/contrib/auth/tokens.py +++ b/django/contrib/auth/tokens.py @@ -42,7 +42,7 @@ class PasswordResetTokenGenerator: return False # Check the timestamp is within limit - if (self._num_days(self._today()) - ts) >= settings.PASSWORD_RESET_TIMEOUT_DAYS: + if (self._num_days(self._today()) - ts) > settings.PASSWORD_RESET_TIMEOUT_DAYS: return False return True |
