The authentication backend now inherits from *ModelBackend*.

see #355
This commit is contained in:
Antoine Nguyen
2012-12-25 10:31:24 +01:00
parent f50c2904e2
commit 4247a0346d
+2 -5
View File
@@ -1,10 +1,7 @@
from django.contrib.auth.backends import ModelBackend
from modoboa.admin.models import User
class SimpleBackend:
supports_object_permissions = False
supports_anonymous_user = False
supports_inactive_user = False
class SimpleBackend(ModelBackend):
def authenticate(self, username=None, password=None):
try: