Unblock admin account after 5 failed login attempts?


Fix "Sorry, there have been more than 5 failed login attempts for this account. It is temporarily blocked. Try again later or request a new password."

Get raw version
  1. #if you are not clear with user id who is blocked, you can completely clear the flood table
  2. arpit@arpit-u11:/var/www/my_project_root$ drush sqlq "DELETE FROM flood";
  4. # when admin account is blocked due to wrong password given more than 5 times and account is temporary blocked.
  5. arpit@arpit-u11:/var/www/my_project_root$ drush sqlq "DELETE FROM flood WHERE event = 'failed_login_attempt_user' AND identifier LIKE '1-%'";
  7. #If you do not have drush installed on server then you can directly run the sql commands on mysql interface like php admin or may be usinng command line,the above command with mysql queries look like following
  8. mysql> DELETE FROM flood;
  9. mysql> DELETE FROM flood WHERE event = 'failed_login_attempt_user' AND identifier LIKE '1-%';