1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-11-01 03:54:15 +00:00

fix indentation error for ldapbackend.py

This commit is contained in:
catborise 2021-06-15 13:44:05 +03:00
parent 990b69ac51
commit 18971f01a6
2 changed files with 30 additions and 28 deletions

View file

@ -35,6 +35,8 @@ try:
userDn,
password) as con:
return username
except:
return None
return None
def authenticate(self, request, username=None, password=None, **kwargs):

View file

@ -110,7 +110,7 @@ DATABASES = {
AUTHENTICATION_BACKENDS = [
"django.contrib.auth.backends.ModelBackend",
#"webvirtcloud.ldapbackend.LdapAuthenticationBackend",
"webvirtcloud.ldapbackend.LdapAuthenticationBackend",
]
LOGIN_URL = "/accounts/login/"