private bool ValidationLogin() { string user = StringNonVide(textBoxlogin, "Utilisateur"); string passHashed = StringNonVide(textBoxPassword, "Mot de passe"); Compte c = RequetesSQL.SQLLogin(user, textBoxPassword.Text); if (c == null) { MB.Avertir("Authentification rejetée"); return(false); } if (!Hashage.HashValide(textBoxPassword.Text, c.HashPass, HashType.Sha256)) { MB.Avertir("Authentification rejetée"); return(false); } return(LoggedUser.OuvrirSession(c.Matricule.ToString())); }