Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #3504: fixed a missing "self" in the authentication docs. Thank…

…s, Robert Myers.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 5c17b42772f4786ac05e34cf5567994bc8d43c17 1 parent a0157da
@jacobian jacobian authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 docs/authentication.txt
4 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
Please sign in to comment.
Something went wrong with that request. Please try again.