-- Fix admin user passwords
USE quiz_db;

-- Generate fresh password hashes for Admin123!
UPDATE admin_users 
SET password_hash = '$2y$10$6mO1iJW/I2IPND3t7EqKRuuZnqBapWuvOEkzah70suknqO2DJSWU.'
WHERE email = 'admin@wildanet.com';

UPDATE admin_users 
SET password_hash = '$2y$10$6mO1iJW/I2IPND3t7EqKRuuZnqBapWuvOEkzah70suknqO2DJSWU.'
WHERE email = 'marketing@wildanet.com';

-- Verify
SELECT email, LEFT(password_hash, 10) as hash_prefix, LENGTH(password_hash) as hash_length 
FROM admin_users;
