Reviewers: ,
Please review this at http://codereview.tryton.org/818002/ Affected files: M res.py Index: res.py =================================================================== --- a/res.py +++ b/res.py @@ -124,6 +124,10 @@ if password and con.simple_bind_s(dn, password): user_id, _, _ = cls._get_login(login) if user_id: + cursor = Transaction().cursor + cursor.execute('UPDATE "' + cls._table + '" ' + 'SET login_try = 0 ' + 'WHERE login = %s', (login,)) return user_id elif connection.auth_create_user: user = cls.create({
