parent
99f923e27f
commit
c24bc77c17
@ -99,6 +99,10 @@ class MongoEngineBackend(object):
|
|||||||
"""Authenticate using MongoEngine and mongoengine.django.auth.User.
|
"""Authenticate using MongoEngine and mongoengine.django.auth.User.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
supports_object_permissions = False
|
||||||
|
supports_anonymous_user = False
|
||||||
|
supports_inactive_user = False
|
||||||
|
|
||||||
def authenticate(self, username=None, password=None):
|
def authenticate(self, username=None, password=None):
|
||||||
user = User.objects(username=username).first()
|
user = User.objects(username=username).first()
|
||||||
if user:
|
if user:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user