Skip to content
Snippets Groups Projects
Commit 350a1c21 authored by Barbara B. Frosik's avatar Barbara B. Frosik
Browse files

temporary blocking login from the tools

parent 693b6c79
No related branches found
No related tags found
No related merge requests found
...@@ -56,8 +56,10 @@ public final class LoginWindow extends JFrame { ...@@ -56,8 +56,10 @@ public final class LoginWindow extends JFrame {
submitButton.addActionListener(new ActionListener() { submitButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) { public void actionPerformed(ActionEvent e) {
String user = userText.getText().trim(); // String user = userText.getText().trim();
String pass = new String(passwordText.getPassword()); // String pass = new String(passwordText.getPassword());
String user = "dm";
String pass = "dbUser";
if ((user == null) || (user.isEmpty()) || (pass == null) || (pass.isEmpty())) { if ((user == null) || (user.isEmpty()) || (pass == null) || (pass.isEmpty())) {
JOptionPane.showMessageDialog(null,"enter login and password", JOptionPane.showMessageDialog(null,"enter login and password",
"Error",JOptionPane.ERROR_MESSAGE); "Error",JOptionPane.ERROR_MESSAGE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment