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

$email = 'admin@gpcrackers.com';
$password = 'Admin@123';
$hashedPassword = password_hash($password, PASSWORD_DEFAULT);

try {
    $stmt = $pdo->prepare("UPDATE users SET password = ? WHERE email = ?");
    $stmt->execute([$hashedPassword, $email]);
    echo "Password updated successfully for $email\n";
    echo "New hash: $hashedPassword\n";
} catch (PDOException $e) {
    echo "Error: " . $e->getMessage() . "\n";
}
?>
