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

$db = DB();
$hash = password_hash('admin123', PASSWORD_DEFAULT);
$db->update('users', [
    'password_hash' => $hash,
    'failed_login_attempts' => 0
], ['username' => 'ibvte_admin']);
echo "Password and attempts reset successfully.\n";
