Update to new returned values from _get_login

issue7037
review36951002
This commit is contained in:
Cédric Krier
2018-02-23 19:14:22 +01:00
parent ad12c311eb
commit 818fd97680
+1 -1
View File
@@ -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'):