<?php
require 'config/db.php';

$hash = password_hash('password123', PASSWORD_DEFAULT);

$stmt = $pdo->prepare("UPDATE admins SET password = :hash WHERE username = 'admin'");
$stmt->execute([':hash' => $hash]);

echo "Admin password successfully updated to 'password123'. Hash: $hash\n";
?>
