Skip to content
Snippets Groups Projects
Commit 7345d8ed authored by Julian Rother's avatar Julian Rother
Browse files

Removed superfluous whitespace and fixed other linter warnings

parent 55701c2d
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@ if 'LDAP_HOST' in config:
import ldap3
def ldapauth(user, password): # pylint: disable=function-redefined
if(LDAP_USERRE.search(user)):
if LDAP_USERRE.search(user):
return {}, []
try:
server = ldap3.Server(config['LDAP_HOST'], port=config['LDAP_PORT'], use_ssl=True)
......@@ -27,7 +27,7 @@ else:
}
def ldapauth(user, password): # pylint: disable=function-redefined
if(LDAP_USERRE.search(user)):
if LDAP_USERRE.search(user):
return {}, []
if config.get('DEBUG') and user in NOTLDAP and password == NOTLDAP[user][0]:
return NOTLDAP[user][2], NOTLDAP[user][1]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment