'How to implement login attempt failed count and block few seconds after failed attempt in reactjs?
A reactjs app connected with java backend. App needs to track the number of failed login attempts, for each failed attempt backend will send a response
{duration: 30, errormessage:"Try log in after 30 seconds", attemptLeft: 1},
if failed attempt is greater 2, block that user from making api call for 30 seconds, also i to have show a pop says,
"Try log in after 30 seconds"
this dialog box should pop with timer. after 30 seconds if user again failed to login(failed login attempt) block user for 60 seconds
"Try log in after 60 seconds"
What is better solution for this?
if i use redux store, the store will destroyed after hard reloading, if i save response data in session, someone can manipulate /override the session.
The primary goal is block him from making api request after a failed logged attempt. Is there any library for implementing this functionality?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
