mirror of
https://github.com/django/django.git
synced 2025-07-19 09:09:13 +00:00
[1.0.X] Fixed #10025 -- Corrected two minor typos in source documentation. Thanks to Tarken for the report.
Merge of r9861 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9871 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
624fc2e397
commit
0b619104dd
@ -4,7 +4,7 @@ from django.utils.http import int_to_base36, base36_to_int
|
|||||||
|
|
||||||
class PasswordResetTokenGenerator(object):
|
class PasswordResetTokenGenerator(object):
|
||||||
"""
|
"""
|
||||||
Stratgy object used to generate and check tokens for the password
|
Strategy object used to generate and check tokens for the password
|
||||||
reset mechanism.
|
reset mechanism.
|
||||||
"""
|
"""
|
||||||
def make_token(self, user):
|
def make_token(self, user):
|
||||||
@ -18,7 +18,7 @@ class PasswordResetTokenGenerator(object):
|
|||||||
"""
|
"""
|
||||||
Check that a password reset token is correct for a given user.
|
Check that a password reset token is correct for a given user.
|
||||||
"""
|
"""
|
||||||
# Parse the tokem
|
# Parse the token
|
||||||
try:
|
try:
|
||||||
ts_b36, hash = token.split("-")
|
ts_b36, hash = token.split("-")
|
||||||
except ValueError:
|
except ValueError:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user