diff options
Diffstat (limited to 'newspipe/controllers/user.py')
-rw-r--r-- | newspipe/controllers/user.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/newspipe/controllers/user.py b/newspipe/controllers/user.py index 00ffb96a..c2501649 100644 --- a/newspipe/controllers/user.py +++ b/newspipe/controllers/user.py @@ -5,6 +5,7 @@ import ldap3 from ldap3.core.exceptions import LDAPBindError from werkzeug.security import check_password_hash from werkzeug.security import generate_password_hash +from urllib.parse import urlparse from .abstract import AbstractController from newspipe.bootstrap import application @@ -17,6 +18,11 @@ from newspipe.models import User logger = logging.getLogger(__name__) +# FOR LDAP +# Reference: session_app +import ldap3 +from ldap3.core.exceptions import LDAPBindError, LDAPPasswordIsMandatoryError + class UserController(AbstractController): _db_cls = User |