Last post May 29, 2020 01:14 AM by yinqiu
Sep 04, 2019 04:31 AM|ahmedbarbary|LINK
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 .
public IActionResult PostUserLogins([FromBody]Users user)
my function structure as above ?
Sep 04, 2019 05:44 AM|AddWeb Solution|LINK
Please refer below artical for block multiple unsuccessfull login attempts.
May 29, 2020 01:14 AM|yinqiu|LINK
I think you can use redis, and then put the account number as the key and the maximum number of failures as the value into redis.
After each attempt, the counter will automatically add one until the maximum number is reached.
Set a cache time, which will automatically expire after the cache time.