Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
campb303 committed Jan 22, 2021
1 parent 75e8cd4 commit e068623
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import os, dotenv
from easyad import EasyAD
from ldap.filter import escape_filter_chars
# pylint says this is an error but it works so ¯\_(ツ)_/¯
from ldap import INVALID_CREDENTIALS as LDAP_INVALID_CREDENTIALS
import ECNQueue

Expand Down Expand Up @@ -83,7 +84,6 @@ def user_is_valid(username: str, password: str) -> bool:
# Do user search
try:
user = ad.search(credentials=credentials, attributes=attributes, filter_string=filter_string)[0]
# pylint says this is an error but it works so ¯\_(ツ)_/¯
except LDAP_INVALID_CREDENTIALS:
return False

Expand Down

0 comments on commit e068623

Please sign in to comment.