Reviewers: ,


Please review this at http://codereview.tryton.org/817002/

Affected files:
  M res.py


Index: res.py
===================================================================
--- a/res.py
+++ b/res.py
@@ -129,6 +129,8 @@
             if password and con.simple_bind_s(dn, password):
                 user_id, _, _ = cls._get_login(login)
                 if user_id:
+                    LoginAttempt = Pool().get('res.user.login.attempt')
+                    LoginAttempt.delete(user_id)
                     return user_id
                 elif connection.auth_create_user:
                     user, = cls.create([{


Reply via email to