|
From: <gem...@li...> - 2011-11-19 18:01:13
|
Revision: 240
http://gemstracker.svn.sourceforge.net/gemstracker/?rev=240&view=rev
Author: michieltcs
Date: 2011-11-19 18:01:07 +0000 (Sat, 19 Nov 2011)
Log Message:
-----------
Fix typo
Modified Paths:
--------------
trunk/library/classes/Gems/Auth.php
trunk/library/configs/db/patches.sql
trunk/library/configs/db/tables/gems__user_login_attempts.10.sql
Modified: trunk/library/classes/Gems/Auth.php
===================================================================
--- trunk/library/classes/Gems/Auth.php 2011-11-19 17:59:24 UTC (rev 239)
+++ trunk/library/classes/Gems/Auth.php 2011-11-19 18:01:07 UTC (rev 240)
@@ -110,7 +110,7 @@
try {
$login_name = $formValues['userlogin'];
$organization = $formValues['organization'];
- $sql = "SELECT gula_failed_logins, gula_last_failed FROM gems__user_login_attemps WHERE gula_login = ? AND gula_id_organization = ?";
+ $sql = "SELECT gula_failed_logins, gula_last_failed FROM gems__user_login_attempts WHERE gula_login = ? AND gula_id_organization = ?";
$values = $this->db->fetchRow($sql, array($login_name, $organization));
if (! $values) {
@@ -168,11 +168,11 @@
try {
if (isset($values['gula_login'])) {
- $this->db->insert('gems__user_login_attemps', $values);
+ $this->db->insert('gems__user_login_attempts', $values);
} else {
$where = $this->db->quoteInto('gula_login = ? AND ', $login_name);
$where .= $this->db->quoteInto('gula_id_organization = ?', $organization);
- $this->db->update('gems__user_login_attemps', $values, $where);
+ $this->db->update('gems__user_login_attempts', $values, $where);
}
} catch (Zend_Db_Exception $e) {
// Fall through as this does not work if the database upgrade did not run
Modified: trunk/library/configs/db/patches.sql
===================================================================
--- trunk/library/configs/db/patches.sql 2011-11-19 17:59:24 UTC (rev 239)
+++ trunk/library/configs/db/patches.sql 2011-11-19 18:01:07 UTC (rev 240)
@@ -249,7 +249,7 @@
AUTO_INCREMENT = 10001
CHARACTER SET 'utf8' COLLATE 'utf8_general_ci';
-CREATE TABLE if not exists gems__user_login_attemps (
+CREATE TABLE if not exists gems__user_login_attempts (
gula_login varchar(30) CHARACTER SET 'utf8' COLLATE 'utf8_general_ci' not null,
gula_id_organization bigint not null references gems__organizations (gor_id_organization),
Modified: trunk/library/configs/db/tables/gems__user_login_attempts.10.sql
===================================================================
--- trunk/library/configs/db/tables/gems__user_login_attempts.10.sql 2011-11-19 17:59:24 UTC (rev 239)
+++ trunk/library/configs/db/tables/gems__user_login_attempts.10.sql 2011-11-19 18:01:07 UTC (rev 240)
@@ -1,7 +1,7 @@
-- Table for keeping track of fail;ed login attempts
--
-CREATE TABLE if not exists gems__user_login_attemps (
+CREATE TABLE if not exists gems__user_login_attempts (
gula_login varchar(30) CHARACTER SET 'utf8' COLLATE 'utf8_general_ci' not null,
gula_id_organization bigint not null references gems__organizations (gor_id_organization),
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|