summaryrefslogtreecommitdiff
path: root/src/lib/Database.class.php
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2011-10-27 19:44:10 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2011-10-27 19:44:10 -0400
commit29a3ffb99435827d5a7ea6886ac22bd2ee18d593 (patch)
tree511928e110e52d210c9707ab22e952b01b3368b1 /src/lib/Database.class.php
parent40bef9550687ed2b5a0c55feafc0b0dd015177e2 (diff)
I think this fixes everything, but it now depends on PHP 5.3+
The introduction of the dependency on PHP 5.3 is that lib/Singleton.class uses `get_called_class()'
Diffstat (limited to 'src/lib/Database.class.php')
-rw-r--r--src/lib/Database.class.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Database.class.php b/src/lib/Database.class.php
index 1e98511..a76d891 100644
--- a/src/lib/Database.class.php
+++ b/src/lib/Database.class.php
@@ -122,7 +122,7 @@ class Database extends Singleton {
$table = $this->mysql_table('auth');
$hasher = Hasher::getInstance();
- @$hash = $hasher->hashPassword($password);
+ @$hash = $hasher->hash($password);
$query =
"UPDATE $table \n".
"SET hash='$hash' \n".
@@ -139,7 +139,7 @@ class Database extends Singleton {
$table = $this->mysql_table('auth');
$user = $this->mysql_escape($username);
$hasher = Hasher::getInstance();
- @$hash = $hasher->hashPassword($password);
+ @$hash = $hasher->hash($password);
$status = 0;
$query =
"INSERT INTO $table ( name, hash , status) \n".