summaryrefslogtreecommitdiff
path: root/modules/system/system.install
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-08-08 20:52:33 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-08-08 20:52:33 +0000
commit1da6ef52c44fd38785391d3a94af8e969344bc12 (patch)
tree074f1da5dae5e9d1877e601b097cf7e3dc7a957f /modules/system/system.install
parent78e3681cde7f4115b7f65cc3ebb0a2e61a27595a (diff)
downloadbrdo-1da6ef52c44fd38785391d3a94af8e969344bc12.tar.gz
brdo-1da6ef52c44fd38785391d3a94af8e969344bc12.tar.bz2
#485974 by pwolanin, Damien Tournoud, mr.baileys: Improved security by limiting the number of allowed login attempts.
Diffstat (limited to 'modules/system/system.install')
-rw-r--r--modules/system/system.install17
1 files changed, 14 insertions, 3 deletions
diff --git a/modules/system/system.install b/modules/system/system.install
index 46ded8dbf..77c566bed 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -759,8 +759,8 @@ function system_schema() {
'not null' => TRUE,
'default' => '',
),
- 'hostname' => array(
- 'description' => 'Hostname of the visitor.',
+ 'identifier' => array(
+ 'description' => 'Identifier of the visitor, such as an IP address or hostname.',
'type' => 'varchar',
'length' => 128,
'not null' => TRUE,
@@ -775,7 +775,7 @@ function system_schema() {
),
'primary key' => array('fid'),
'indexes' => array(
- 'allow' => array('event', 'hostname', 'timestamp'),
+ 'allow' => array('event', 'identifier', 'timestamp'),
),
);
@@ -2234,6 +2234,17 @@ function system_update_7031() {
}
/**
+* Alter field hostname to identifier in the {flood} table.
+ */
+function system_update_7032() {
+ $ret = array();
+ db_drop_index($ret, 'flood', 'allow');
+ db_change_field($ret, 'flood', 'hostname', 'identifier', array('type' => 'varchar', 'length' => 128, 'not null' => TRUE, 'default' => ''));
+ db_add_index($ret, 'flood', 'allow', array('event', 'identifier', 'timestamp'));
+ return $ret;
+}
+
+/**
* @} End of "defgroup updates-6.x-to-7.x"
* The next series of updates should start at 8000.
*/