problem
how to make attempt login failed for user per no of try per period ?
i work on asp.net core 2.2 web api
i need to write function on login http post make count to failed login attempt within period of time
failed login within period 10 minutes the if it exceed it will redirect to url xxxx .
- [HttpPost(Contracts.ApiRoutes.Login.UserLogin)]
- public IActionResult PostUserLogins([FromBody]Users user)
- {
-
- if (isvalid)
-
- {
-
- }
-
- else
-
- {
-
- }
-
- }
my function structure as above ?
How to write function by c# return Boolean and tell me login exceed retry faild number login or not
and call