public function editPassword(UserAccountModel $user) { global $DB; $stat = $DB->prepare("UPDATE user_account_information SET password_hash=:password_hash WHERE id =:id"); $stat->execute(array('id' => $user->getId(), 'password_hash' => $user->getPasswordHash())); }