Browse Source

The login window now closes automatically after a successful login

remotes/origin/server
Richard Schmidt 11 months ago
parent
commit
36bd9110bf
  1. 2
      src/main/java/LoginGUI.java

2
src/main/java/LoginGUI.java

@ -55,6 +55,8 @@ public class LoginGUI extends JFrame implements ActionListener {
if (authenticateUser(username, password)) {
JOptionPane.showMessageDialog(this, "Login successful!");
// Perform actions after successful login
dispose();
} else {
JOptionPane.showMessageDialog(this, "Invalid username or password", "Login Error", JOptionPane.ERROR_MESSAGE);
}

Loading…
Cancel
Save