adding password strength meter and session ui
Deploy / deploy (push) Successful in 34s

This commit is contained in:
2026-05-07 23:51:33 +02:00
parent 69a6da90c5
commit d7632748ab
8 changed files with 256 additions and 1 deletions
+1
View File
@@ -69,6 +69,7 @@ if (isset($data->old_password) && isset($data->new_password)) {
if ($update_stmt = $conn->prepare($update_sql)) {
$update_stmt->bind_param("ssi", $hashed_password, $new_pepper, $user_id);
if ($update_stmt->execute()) {
log_activity($conn, $user_id, 'password_change', '');
echo json_encode(['success' => true, 'message' => 'Password updated successfully.']);
} else {
echo json_encode(['success' => false, 'message' => 'Failed to update password.']);