From e864c5166cbe7a1645c48671b1caca1235ad76e7 Mon Sep 17 00:00:00 2001 From: heddn Date: Fri, 10 Apr 2015 09:16:09 -0600 Subject: [PATCH] Issue #1825544 by abautu: Add user_failed_login_identifier_uid_only to form --- flood_control.admin.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/flood_control.admin.inc b/flood_control.admin.inc index 49ca853..aa11678 100755 --- a/flood_control.admin.inc +++ b/flood_control.admin.inc @@ -41,6 +41,12 @@ function flood_control_settings_form() { '#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', FALSE), + ); // Contact module flood events. $form['contact'] = array( -- 2.3.5