summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiam Jack <cuonic@cuonic.com>2015-10-12 18:57:06 +0200
committerLiam Jack <cuonic@cuonic.com>2015-10-12 18:57:06 +0200
commit0f4d7156f35d81c430383eccddb85196f4e9cc39 (patch)
tree169e1f5b4b458a737d8f940eb483667e1e417f13
parent4246c9253765302ef0da604cfd8aa0de09058e89 (diff)
downloadPHPAuth-origin/groups.zip
PHPAuth-origin/groups.tar.gz
PHPAuth-origin/groups.tar.bz2
-rwxr-xr-xauth.class.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/auth.class.php b/auth.class.php
index a9cd813..6bce180 100755
--- a/auth.class.php
+++ b/auth.class.php
@@ -359,11 +359,11 @@ class Auth
$data['expiretime'] = 0;
}
- $data['cookie_crc'] = sha1($data['hash'] . $this->config->site_key);
+ $data['cookieCrc'] = sha1($data['hash'] . $this->config->site_key);
$query = $this->dbh->prepare("INSERT INTO {$this->config->table_sessions} (userId, hash, expiryDate, ip, agent, cookieCrc) VALUES (?, ?, ?, ?, ?, ?)");
- if(!$query->execute(array($uid, $data['hash'], $data['expire'], $ip, $agent, $data['cookie_crc']))) {
+ if(!$query->execute(array($uid, $data['hash'], $data['expire'], $ip, $agent, $data['cookieCrc']))) {
return false;
}
@@ -433,7 +433,7 @@ class Auth
$currentdate = strtotime(date("Y-m-d H:i:s"));
$db_ip = $row['ip'];
$db_agent = $row['agent'];
- $db_cookie = $row['cookie_crc'];
+ $db_cookie = $row['cookieCrc'];
if ($currentdate > $expiredate) {
$this->deleteExistingSessions($uid);