Fix _get_login for new upstream API

The changeset c9be44cd05e1 modifies the returned values of _get_login.

issue3975
review6411002
This commit is contained in:
Cédric Krier committed 2014-07-09 00:19:54 +02:00
1 parent d0e661635b
commit 35fcb693b0
1 file changed
+1 -1
+1 -1
View File
@@ -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