mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-19 05:58:34 +02:00
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user