Ticket #10025: 10025.diff
File 10025.diff, 747 bytes (added by , 16 years ago) |
---|
-
django/contrib/auth/tokens.py
4 4 5 5 class PasswordResetTokenGenerator(object): 6 6 """ 7 Strat gy object used to generate and check tokens for the password7 Strategy object used to generate and check tokens for the password 8 8 reset mechanism. 9 9 """ 10 10 def make_token(self, user): … … 18 18 """ 19 19 Check that a password reset token is correct for a given user. 20 20 """ 21 # Parse the toke m21 # Parse the token 22 22 try: 23 23 ts_b36, hash = token.split("-") 24 24 except ValueError: