From 7393b69757c77241c552e7af7274ada59689ee82 Mon Sep 17 00:00:00 2001 From: Ozzieisaacs Date: Fri, 24 Apr 2020 19:25:11 +0200 Subject: [PATCH] Fix for #1326 (typo) --- cps/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/web.py b/cps/web.py index 7be3250d..c99cfeb9 100644 --- a/cps/web.py +++ b/cps/web.py @@ -157,7 +157,7 @@ def load_user_from_auth_header(header_val): pass user = _fetch_user_by_name(basic_username) if config.config_login_type == constants.LOGIN_LDAP and services.ldap: - if services.ldap.bind_user(str(user.password), basic_password) + if services.ldap.bind_user(str(user.password), basic_password): return user if user and check_password_hash(str(user.password), basic_password): return user