From 35fcb693b0e0b870394d1004fa5a5a0f87bf55d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 9 Jul 2014 00:19:54 +0200 Subject: [PATCH] Fix _get_login for new upstream API The changeset c9be44cd05e1 modifies the returned values of _get_login. issue3975 review6411002 --- res.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/res.py b/res.py index 33e1c0d706..46e35ad4a8 100644 --- a/res.py +++ b/res.py @@ -131,7 +131,7 @@ class User: [(dn, attrs)] = cls.ldap_search_user(login, con, connection, attrs=[str(connection.auth_uid)]) if password and con.simple_bind_s(dn, password): - user_id, _, _ = cls._get_login(login) + user_id, _ = cls._get_login(login) if user_id: LoginAttempt.remove(login) return user_id