Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Block user account after 3 consecutive failed login attempts using spring security

How to save the number of consecutive failed login attempts, and how to block a user account after reaching 3 failed consecutive login attempts?

Can i do that using implementing AuthenticationFailureHandler, ApplicationListener and AuthenticationFailureBadCredentialsEvent? If so how?

like image 376
Kalhan.Toress Avatar asked Oct 29 '25 17:10

Kalhan.Toress


1 Answers

This was already discussed in: How can I limit login attempts in Spring Security?

like image 192
edudoda Avatar answered Oct 31 '25 12:10

edudoda



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!