I'm looking for something similar.
How do I bind the failed attempt to the insert behaviour? I'm currently adding the username to a login table but not the information if the login was successful or not. How can I do this?
Furthermore I'd like to deactivate a member (set active flag to 0) if he had 3 failed attempts in a row. Any ideas how to achieve this?
Thanks for any help.