Return a token that can be used once to do a password reset for the given user.
(self, user)
| 38 | secret_fallbacks = property(_get_fallbacks, _set_fallbacks) |
| 39 | |
| 40 | def make_token(self, user): |
| 41 | """ |
| 42 | Return a token that can be used once to do a password reset |
| 43 | for the given user. |
| 44 | """ |
| 45 | return self._make_token_with_timestamp( |
| 46 | user, |
| 47 | self._num_seconds(self._now()), |
| 48 | self.secret, |
| 49 | ) |
| 50 | |
| 51 | def check_token(self, user, token): |
| 52 | """ |