Ticket #3504: 3504-authentication.patch

File 3504-authentication.patch, 810 bytes (added by Robert Myers <myer0052@…>, 18 years ago)

Added a patch to fix the documentation errors.

  • docs/authentication.txt

     
    813813the time, it'll just look like this::
    814814
    815815    class MyBackend:
    816         def authenticate(username=None, password=None):
     816        def authenticate(self, username=None, password=None):
    817817            # Check the username/password and return a User.
    818818
    819819But it could also authenticate a token, like so::
     
    819819But it could also authenticate a token, like so::
    820820
    821821    class MyBackend:
    822         def authenticate(token=None):
     822        def authenticate(self, token=None):
    823823            # Check the token and return a User.
    824824
    825825Either way, ``authenticate`` should check the credentials it gets, and it
Back to Top