From f661ec7bb44210ab3ac918b3a6d76ec7e659f375 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Tue, 27 Jun 2023 23:09:20 +0200 Subject: fix: undefined name app --- newspipe/controllers/user.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/newspipe/controllers/user.py b/newspipe/controllers/user.py index 2aaded64..00ffb96a 100644 --- a/newspipe/controllers/user.py +++ b/newspipe/controllers/user.py @@ -7,6 +7,7 @@ from werkzeug.security import check_password_hash from werkzeug.security import generate_password_hash from .abstract import AbstractController +from newspipe.bootstrap import application from newspipe.models import User # from ldap3.core.exceptions import LDAPPasswordIsMandatoryError @@ -150,7 +151,7 @@ class LdapuserController: def ldap_login(self, username, password): # print(f"DEBUG: Trying user {username} with pw '{password}'") - this_uri = self.get_next_ldap_server(app) + this_uri = self.get_next_ldap_server(application.config) # Perform the ldap interactions user = self.authenticated_user( server_uri=this_uri, user_dn=username, password=password -- cgit