🔍 Test de connexion MDT Police
Étape 1 : Chargement des fichiers
đź“„ config/config.php ...
Warning: session_start(): Session cannot be started after headers have already been sent in /home/reparelicr/mdt/config/config.php on line 32
Warning: Cannot modify header information - headers already sent by (output started at /home/reparelicr/mdt/test_login.php:12) in /home/reparelicr/mdt/config/config.php on line 36
Warning: Cannot modify header information - headers already sent by (output started at /home/reparelicr/mdt/test_login.php:12) in /home/reparelicr/mdt/config/config.php on line 37
Warning: Cannot modify header information - headers already sent by (output started at /home/reparelicr/mdt/test_login.php:12) in /home/reparelicr/mdt/config/config.php on line 38
Warning: Cannot modify header information - headers already sent by (output started at /home/reparelicr/mdt/test_login.php:12) in /home/reparelicr/mdt/config/config.php on line 39
âś“ OK
đź“„ classes/Database.php ... âś“ OK
đź“„ classes/Auth.php ... âś“ OK
Étape 2 : Configuration de la base de données
đź”§ DB_HOST: reparelicrlaw.mysql.db
đź”§ DB_NAME: reparelicrlaw
đź”§ DB_USER: reparelicrlaw
đź”§ DB_PREFIX: mdt_
Étape 3 : Test de connexion à la base
✓ Connexion réussie !
Étape 4 : Vérification de l'agent 00002
✓ Agent trouvé !ID: 3
Matricule: 00002
Nom: Jon Soe
Statut: actif
Password_hash: ✓ Présent
Hash (20 premiers caractères): $2y$10$92IXUNpkjO0rO...
Étape 5 : Test de la fonction password_verify
Test avec le mot de passe 'password' ... âś“ Le mot de passe correspond !
Étape 6 : Test complet de login
Tentative de connexion avec matricule
00002 et mot de passe
password...
✗ Échec de connexionErreur : Erreur lors de l'exécution de la requête
🎯 Conclusion
Il y a un problème quelque part.
Regarde les messages d'erreur ci-dessus pour identifier le problème.
⚠️ IMPORTANT : Supprime ce fichier après utilisation pour des raisons de sécurité !