aboutsummaryrefslogtreecommitdiffhomepage
path: root/routes/preferences.php
diff options
context:
space:
mode:
Diffstat (limited to 'routes/preferences.php')
-rw-r--r--routes/preferences.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/preferences.php b/routes/preferences.php
index 95e7228..8ccf74e 100644
--- a/routes/preferences.php
+++ b/routes/preferences.php
@@ -38,7 +38,7 @@ Router::getInstance()->mount('/fragment/changePassword', function (array $args)
} elseif ($_POST['new'] != $_POST['newRepeat']) {
$error = 'doesntMatch';
} else {
- $user->passwordHash = defaults_password_hash($_POST['new']);
+ $user->setPassword($_POST['new']);
$user->save();
$success = true;
}