parent
99f923e27f
commit
c24bc77c17
1 changed files with 4 additions and 0 deletions
|
|
@ -99,6 +99,10 @@ class MongoEngineBackend(object):
|
|||
"""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):
|
||||
user = User.objects(username=username).first()
|
||||
if user:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue