Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed #14994 - Add attributes to example auth backend which would emi…
…t DeprecationWarning otherwise. Thanks kmike for the report and ojii for the patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15137 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
timgraham committed Jan 3, 2011
1 parent 07ef430 commit d41bd3f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/topics/auth.txt
Expand Up @@ -1537,6 +1537,11 @@ object the first time a user authenticates::
ADMIN_LOGIN = 'admin'
ADMIN_PASSWORD = 'sha1$4e987$afbcf42e21bd417fb71db8c66b321e9fc33051de'
"""

supports_object_permissions = False
supports_anonymous_user = False
supports_inactive_user = False

def authenticate(self, username=None, password=None):
login_valid = (settings.ADMIN_LOGIN == username)
pwd_valid = check_password(password, settings.ADMIN_PASSWORD)
Expand Down

0 comments on commit d41bd3f

Please sign in to comment.