mirror of
https://github.com/retspen/webvirtcloud
synced 2024-11-01 12:04:15 +00:00
fix indentation error for ldapbackend.py
This commit is contained in:
parent
990b69ac51
commit
18971f01a6
2 changed files with 30 additions and 28 deletions
|
@ -35,6 +35,8 @@ try:
|
||||||
userDn,
|
userDn,
|
||||||
password) as con:
|
password) as con:
|
||||||
return username
|
return username
|
||||||
|
except:
|
||||||
|
return None
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def authenticate(self, request, username=None, password=None, **kwargs):
|
def authenticate(self, request, username=None, password=None, **kwargs):
|
||||||
|
|
|
@ -110,7 +110,7 @@ DATABASES = {
|
||||||
|
|
||||||
AUTHENTICATION_BACKENDS = [
|
AUTHENTICATION_BACKENDS = [
|
||||||
"django.contrib.auth.backends.ModelBackend",
|
"django.contrib.auth.backends.ModelBackend",
|
||||||
#"webvirtcloud.ldapbackend.LdapAuthenticationBackend",
|
"webvirtcloud.ldapbackend.LdapAuthenticationBackend",
|
||||||
]
|
]
|
||||||
|
|
||||||
LOGIN_URL = "/accounts/login/"
|
LOGIN_URL = "/accounts/login/"
|
||||||
|
|
Loading…
Reference in a new issue