Saturday, September 26, 2009

Re: login attempts limit and auth

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., "rrd...@gmail.com" <rrd...@gmail.com> 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 cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: