|
From: <gem...@li...> - 2011-11-03 12:23:42
|
Revision: 169
http://gemstracker.svn.sourceforge.net/gemstracker/?rev=169&view=rev
Author: michieltcs
Date: 2011-11-03 12:23:36 +0000 (Thu, 03 Nov 2011)
Log Message:
-----------
Add parameter to afterLogin(), don't force it to read POST data
Modified Paths:
--------------
trunk/library/classes/Gems/Default/IndexAction.php
trunk/library/classes/GemsEscort.php
Modified: trunk/library/classes/Gems/Default/IndexAction.php
===================================================================
--- trunk/library/classes/Gems/Default/IndexAction.php 2011-11-03 12:05:46 UTC (rev 168)
+++ trunk/library/classes/Gems/Default/IndexAction.php 2011-11-03 12:23:36 UTC (rev 169)
@@ -231,7 +231,7 @@
/**
* Perform any project specific post login activities
*/
- $this->escort->afterLogin();
+ $this->escort->afterLogin($_POST['userlogin']);
/**
* Fix current locale
Modified: trunk/library/classes/GemsEscort.php
===================================================================
--- trunk/library/classes/GemsEscort.php 2011-11-03 12:05:46 UTC (rev 168)
+++ trunk/library/classes/GemsEscort.php 2011-11-03 12:23:36 UTC (rev 169)
@@ -911,14 +911,14 @@
}
}
- public function afterLogin()
+ public function afterLogin($userName)
{
/**
* Reset number of failed logins
*/
try {
$sql = "UPDATE gems__users SET gsu_failed_logins = 0, gsu_last_failed = NULL WHERE gsu_login = ?";
- $this->db->query($sql, array($_POST['userlogin']));
+ $this->db->query($sql, array($userName));
} catch (Exception $e) {
// swallow exception
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|