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