First set of modifications in order to work with Django 1.3.

see #130
This commit is contained in:
Antoine Nguyen
2011-03-30 19:17:24 +02:00
parent 3a29f1345e
commit 62d792b419
3 changed files with 18 additions and 10 deletions
+5
View File
@@ -3,6 +3,11 @@ from modoboa.admin.models import Mailbox
from modoboa.lib import _check_password
class SimpleBackend:
supports_object_permissions = False
supports_anonymous_user = False
supports_inactive_user = False
def authenticate(self, username=None, password=None):
try:
user = User.objects.get(username=username)