<?php
require_once __DIR__ . '/config/database.php';

$new_password = 'e64b78fc3b'; // your desired password
$hashed = password_hash($new_password, PASSWORD_DEFAULT);

// Update admin with username 'admin@digitalstore.com'
$stmt = $pdo->prepare("UPDATE admins SET password = ? WHERE username = ?");
$stmt->execute([$hashed, 'admin@digitalstore.com']);

echo "Password updated successfully. New password is: $new_password";
?>