Browse files

Small edits to comments in contrib/auth/

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
adrianholovaty committed Jul 3, 2006
1 parent 37aeabe commit 435e8910ae2ecbf49b585c0caf4994b3a78acdb0
Showing with 4 additions and 4 deletions.
  1. +4 −4 django/contrib/auth/
@@ -27,17 +27,17 @@ def get_backends():
def authenticate(**credentials):
- If the given credentials, return a user object.
+ If the given credentials are valid, return a User object.
for backend in get_backends():
user = backend.authenticate(**credentials)
except TypeError:
- # this backend doesn't accept these credentials as arguments, try the next one.
+ # This backend doesn't accept these credentials as arguments. Try the next one.
if user is None:
- # annotate the user object with the path of the backend
+ # Annotate the user object with the path of the backend.
user.backend = str(backend.__class__)
return user
@@ -54,7 +54,7 @@ def login(request, user):
def logout(request):
- Remove the authenticated user's id from request.
+ Remove the authenticated user's ID from the request.
del request.session[SESSION_KEY]
del request.session[BACKEND_SESSION_KEY]

0 comments on commit 435e891

Please sign in to comment.