php - What is the quickest way to check invalid login attempts in Symfony2 FOSUserBundle? -


i using fosuserbundle in symfony2 handle user registration , authentication. want lock out user accounts after 3 invalid login attempts. so, quickest way check invalid login attempts in symfony2 fosuserbundle?

solution far

maybe have define $attempts attribute on user object identify invalid login attempts count. can use authenticationhandler class handle login attempt ( using onauthenticationsuccess() , onauthenticationfailure() )


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -