标签: authentication spring-mvc spring-security
如何保存连续失败的登录尝试次数,以及如何在达到3次连续登录尝试失败后阻止用户帐户?
我可以使用AuthenticationFailureHandler,ApplicationListener和AuthenticationFailureBadCredentialsEvent来实现吗?如果是这样的话?
AuthenticationFailureHandler
ApplicationListener
AuthenticationFailureBadCredentialsEvent
答案 0 :(得分:4)
已在How can I limit login attempts in Spring Security?