authentification corrigé
This commit is contained in:
parent
cc25a779ab
commit
c5d00ea88f
1 changed files with 15 additions and 0 deletions
|
@ -258,9 +258,24 @@ public class Login_RegisterUI extends JFrame implements Runnable{
|
||||||
|
|
||||||
if(rs.next()) {
|
if(rs.next()) {
|
||||||
System.out.println("BDD SUCCESS");
|
System.out.println("BDD SUCCESS");
|
||||||
|
GestionnaireNom.instance().setId(id);
|
||||||
|
gestionnaireClavardage.instance(); //Init(gestionnaireClavardage)
|
||||||
|
|
||||||
|
dispose();
|
||||||
|
|
||||||
|
//1er Méthode sans Thread
|
||||||
|
//NomUI nom = new NomUI();
|
||||||
|
//nom.setLocationRelativeTo(null);
|
||||||
|
//nom.setVisible(true);
|
||||||
|
|
||||||
|
|
||||||
|
//2eme Méthode avec Thread
|
||||||
|
Thread t = new Thread(new NomUI());
|
||||||
|
t.start();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
System.out.println("BDD FAIL");
|
System.out.println("BDD FAIL");
|
||||||
|
JOptionPane.showMessageDialog(null, "Invalid Id / Password", "Login error", 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue