diff --git a/VeraxShield/VeraxShield/services/authentificationService/AuthentificationService.cs b/VeraxShield/VeraxShield/services/authentificationService/AuthentificationService.cs index 61656ff..2002bc3 100644 --- a/VeraxShield/VeraxShield/services/authentificationService/AuthentificationService.cs +++ b/VeraxShield/VeraxShield/services/authentificationService/AuthentificationService.cs @@ -22,7 +22,7 @@ public class AuthentificationService : IAuthentificationService await this.MajUtilisateurs(); var utilisateur = this.UtilisateursApplication.FirstOrDefault(w => w.Pseudo == requete.Pseudo && w.Mdp == requete.MotDePasse); - if (utilisateur == null) + if (utilisateur == null && !BCrypt.Net.BCrypt.Verify(requete.MotDePasse, utilisateur.Mdp)) { throw new Exception("Pseudo ou mot de passe invalide ! "); }