I would put it into login() function. After each unsuccessful login attempt, I would increment a variable, like $login_attempts, save it into user session table and maybe log last unsuccessful login attempt, too. Just my quick thought.
On 26. Sep., 14:45 h., "[email protected]" <[email protected]> wrote: > Hari, > > I use auth component to do the login. I want to limit login attempts > like for 3 attempts. Where should I put my code? UserController login > ()? beforeFilter? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
