From 818fd97680ce77477b037b4282f73d89920c8a13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 23 Feb 2018 19:14:22 +0100 Subject: [PATCH] Update to new returned values from _get_login issue7037 review36951002 --- res.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/res.py b/res.py index 9d40752393..8a633996e7 100644 --- a/res.py +++ b/res.py @@ -178,7 +178,7 @@ class User: if (password and con.bind()): # Use ldap uid so we always get the right case login = attrs.get(uid, [login])[0] - user_id, _ = cls._get_login(login) + user_id = cls._get_login(login)[0] if user_id: return user_id elif config.getboolean(section, 'create_user'):