<?php
require_once 'includes/db.php';

$newPassword = 'admin123';
$hash = password_hash($newPassword, PASSWORD_DEFAULT);

db_run("UPDATE users SET password = ? WHERE username = 'admin'", [$hash]);

echo "✅ Done. Password reset to: <strong>admin123</strong><br>";
echo "<a href='login.php'>Go to Login →</a>";

// DELETE THIS FILE after use!