fin fonction

This commit is contained in:
2025-03-13 13:17:30 +01:00
parent 1016e4a3e6
commit 3eca7c4d6a
2 changed files with 9 additions and 6 deletions

View File

@@ -5,6 +5,7 @@
package presentation;
import acces_aux_donnes.praticienSQL;
import java.util.ArrayList;
/**
*
@@ -159,9 +160,10 @@ public class jffConnexion extends javax.swing.JFrame {
String identifiant = jTFIdentifiant.getText();
String mdp = String.valueOf(jPFmdp.getPassword());
praticienSQL testPraticien = new praticienSQL();
String [] lePraticien = testPraticien.rechercherPraticien(identifiant,mdp);
if (lePraticien[0] != null){
ArrayList<String>lePraticien = testPraticien.rechercherPraticien(identifiant,mdp);
if (lePraticien.get(0) != null){
System.out.print("TEST REUSSIE");
new jffFamilleMedoc().setVisible(true);
}else {
System.out.print("TEST EMILE RACISTE");
}