Increase number of login attempts per user or per role in Drupal
Is it possible to increase number of login attempts before blocking an 开发者_如何学Caccount for a certain user or role in Drupal? (not for all users) Or even never block a certain user regardless of number of login failures?
Thanks.
Does Drupal 6 lockout accounts after a certain number of failures? Everything I'm reading indicates that this is a Drupal 7 feature. Anyway...
It looks the Login Security module would allow you to customize how users get blocked. You may check out the temporarily blocked feature.
Enabling this module, a site administrator may limit the number of invalid login attempts before blocking accounts, or denying access by IP address, temporarily or permanently. A set of notifications may help the site administrator to know when something is happening with the login form of their site: password and account guessing, bruteforce login attempts or just unexpected behaviour with the login operation.
If this is in Drupal 6 then you probably have a module performing the blocking of accounts, because this isn't in Drupal 6 core.
It is in Drupal 7 however.
If you are using Drupal 6, then you need to find out which module is doing the blocking.
If you are using Drupal 7 you can install the flood_control module to expose the variables around blocking. http://drupal.org/project/flood_control
There is always an option to hardcode a user id or role id inside of login_security.module There is a function login_user_block_user_name($variables) in login_security.module responsible for blocking users. Adding a condition if($variables['uid']!=user_id_not_to_block) or something like that can work. However hardcoding isn't the best solution.
精彩评论