diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2007-02-25 20:01:08 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2007-02-25 20:01:08 +0000 |
| commit | 8a70334640b31229d53e982bd59d951fe15aecbc (patch) | |
| tree | 793c50ad4f6fea8de6507672aa123adade5f3abf /docs/authentication.txt | |
| parent | 43829a95d3e5740250794a0b4400fd813e724a2e (diff) | |
newforms-admin: Merged to [4579]
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@4580 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/authentication.txt')
| -rw-r--r-- | docs/authentication.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/authentication.txt b/docs/authentication.txt index ef30879ae0..a7c28fc7a8 100644 --- a/docs/authentication.txt +++ b/docs/authentication.txt @@ -813,13 +813,13 @@ The ``authenticate`` method takes credentials as keyword arguments. Most of the time, it'll just look like this:: class MyBackend: - def authenticate(username=None, password=None): + def authenticate(self, username=None, password=None): # Check the username/password and return a User. But it could also authenticate a token, like so:: class MyBackend: - def authenticate(token=None): + def authenticate(self, token=None): # Check the token and return a User. Either way, ``authenticate`` should check the credentials it gets, and it |
