diff --git a/sites/all/modules/flood_control/flood_control.admin.inc b/sites/all/modules/flood_control/flood_control.admin.inc index 49ca853..ec0f1d0 100755 --- a/sites/all/modules/flood_control/flood_control.admin.inc +++ b/sites/all/modules/flood_control/flood_control.admin.inc @@ -41,6 +41,12 @@ '#options' => array(0 => t('None (disabled)')) + drupal_map_assoc(array(60, 180, 300, 600, 900, 1800, 2700, 3600, 10800, 21600, 32400, 43200, 86400), 'format_interval'), '#default_value' => variable_get('user_failed_login_user_window', 21600), ); + $form['login']['user_failed_login_identifier_uid_only'] = array( + '#type' => 'checkbox', + '#title' => t('Failed login (username only)'), + '#description' => t('When enabled, register failed login events based on the uid only, so they apply for any IP address. This is the most secure option.'), + '#default_value' => variable_get('user_failed_login_identifier_uid_only'), + ); // Contact module flood events. $form['contact'] = array(