Django

Code

Changeset 3257

Show
Ignore:
Timestamp:
07/02/06 21:12:59 (2 years ago)
Author:
adrian
Message:

Small edits to comments in contrib/auth/init.py

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/contrib/auth/__init__.py

    r3226 r3257  
    2828def authenticate(**credentials): 
    2929    """ 
    30     If the given credentials, return a user object. 
     30    If the given credentials are valid, return a User object. 
    3131    """ 
    3232    for backend in get_backends(): 
     
    3434            user = backend.authenticate(**credentials) 
    3535        except TypeError: 
    36             # this backend doesn't accept these credentials as arguments, try the next one. 
     36            # This backend doesn't accept these credentials as arguments. Try the next one. 
    3737            continue 
    3838        if user is None: 
    3939            continue 
    40         # annotate the user object with the path of the backend 
     40        # Annotate the user object with the path of the backend. 
    4141        user.backend = str(backend.__class__) 
    4242        return user 
     
    5555def logout(request): 
    5656    """ 
    57     Remove the authenticated user's id from request. 
     57    Remove the authenticated user's ID from the request. 
    5858    """ 
    5959    del request.session[SESSION_KEY]