diff options
Diffstat (limited to 'src/lib/Database.class.php')
-rw-r--r-- | src/lib/Database.class.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/Database.class.php b/src/lib/Database.class.php index b7e5bcd..07df993 100644 --- a/src/lib/Database.class.php +++ b/src/lib/Database.class.php @@ -114,7 +114,8 @@ class Database { if (!is_int($uid)) return false; $table = $this->mysql_table('auth'); - $hasher = $this->hasher(); + global $mm; + $hasher = $mm->hasher(); @$hash = $hasher->HashPassword($password); $query = "UPDATE $table \n". @@ -129,9 +130,11 @@ class Database { return false; } + global $mm; + $table = $this->mysql_table('auth'); $user = $this->mysql_escape($username); - $hasher = $this->hasher(); + $hasher = $mm->hasher(); @$hash = $hasher->HashPassword($password); $status = 0; $query = |