Use django.contrib.auth's authenticate() instead of django_auth

Issue #41 resolved
Brian McMurray created an issue rolls its own method 'django_auth' to authenticate a user by checking the password. This is used by the HttpBasicAuthentication class.

It would be better to use django.contrib.auth's authenticate() function which ties into any custom AuthBackends that may be used in a particular Django app.

Attached is a patch.

Comments (3)

  1. Jesper Noehr repo owner

    Thanks. I've modified your patch a bit to suit the latest tip changes. All tests pass, should be fine.

    Also, if you want your name in AUTHORS.txt, please give me your full name.

  2. Log in to comment