authFrame.dispose();
/********/
String userName = user.getName();
String userMail = user.getEmail();
UserDao udao = new UserDao();
currentUser = new UserApp(userName, userMail);
UserApp u = currentUser ;
if (u.equals(udao.findByEmail(userMail))) {
JOptionPane.showMessageDialog(context, "We have you in our database! So welcome :)",
"Welcome", JOptionPane.INFORMATION_MESSAGE);
// fbCnx.this.setVisible(false);
}else
{
udao.InsertUser(u);
}
} catch (SQLException ex) {
Logger.getLogger(fbCnx.class.getName()).log(Level.SEVERE, null, ex);
}
}