diff options
| author | winter | 2025-03-20 22:17:38 +0000 |
|---|---|---|
| committer | winter | 2025-03-20 22:17:38 +0000 |
| commit | b5c4e99cb1a2e5bb5cf6d38192d677843b1acd80 (patch) | |
| tree | 3aee1e8b4961abe6e8c6b84913b04c9396b11b4e /routes/preferences.php | |
| parent | c10a1ea700a94e4eff8b10985cd402943ad07859 (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.php | 2 |
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; } |
