#!/usr/bin/env python3
from werkzeug.security import check_password_hash
import json

with open('users.json', 'r') as f:
    users = json.load(f)

email = 'phi.robin@gmail.com'
password = 'ducnuk-hYsbyz-cokto0'

print(f"Email: {email}")
print(f"Email existe dans users.json: {email in users}")

if email in users:
    stored_hash = users[email]
    print(f"Hash stocké: {stored_hash[:50]}...")
    if check_password_hash(stored_hash, password):
        print("✅ Mot de passe vérifié avec succès!")
    else:
        print("❌ Échec de vérification du mot de passe")
