=== modifié fichier users_ldap/users_ldap.py --- users_ldap/users_ldap.py 2011-04-29 11:22:51 +0000 +++ users_ldap/users_ldap.py 2011-05-18 09:58:42 +0000 @@ -98,7 +98,8 @@ name = result_data[0][1]['cn'][0] if l.bind_s(dn, password): l.unbind() - cr.execute("SELECT id FROM res_users WHERE login=%s",(tools.ustr(login),)) + cr.execute('UPDATE res_users SET date=now() WHERE login=%s AND active RETURNING id', + (tools.ustr(login), )) res = cr.fetchone() logger.debug(res) if res: