summaryrefslogtreecommitdiff
path: root/src/lib/Database.class.php
diff options
context:
space:
mode:
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".