aboutsummaryrefslogtreecommitdiffhomepage
path: root/routes/preferences.php
diff options
context:
space:
mode:
authorwinter2025-03-20 22:17:38 +0000
committerwinter2025-03-20 22:17:38 +0000
commitb5c4e99cb1a2e5bb5cf6d38192d677843b1acd80 (patch)
tree3aee1e8b4961abe6e8c6b84913b04c9396b11b4e /routes/preferences.php
parentc10a1ea700a94e4eff8b10985cd402943ad07859 (diff)
fix various htmx navigation / page reloads
also i added a UserAccount::setPassword because i felt like it
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;
}