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:
parent
990b69ac51
commit
18971f01a6
2 changed files with 30 additions and 28 deletions
|
@ -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):
|
||||
|
|
|
@ -110,7 +110,7 @@ DATABASES = {
|
|||
|
||||
AUTHENTICATION_BACKENDS = [
|
||||
"django.contrib.auth.backends.ModelBackend",
|
||||
#"webvirtcloud.ldapbackend.LdapAuthenticationBackend",
|
||||
"webvirtcloud.ldapbackend.LdapAuthenticationBackend",
|
||||
]
|
||||
|
||||
LOGIN_URL = "/accounts/login/"
|
||||
|
|
Loading…
Reference in a new issue