Browse Source

Added functionality to the signup button

remotes/origin/server
Richard Schmidt 11 months ago
parent
commit
79c72ab0fe
  1. 4
      src/main/java/LoginGUI.java
  2. 7
      user.json

4
src/main/java/LoginGUI.java

@ -71,6 +71,10 @@ public class LoginGUI extends JFrame implements ActionListener {
public void actionPerformed(ActionEvent e) {
if (e.getSource() == loginButton) {
login();
}else if (e.getSource() == signUpButton) {
SignUpGUI signUpGUI = new SignUpGUI();
signUpGUI.setVisible(true);
}
}

7
user.json

@ -19,5 +19,12 @@
"password": "Test",
"birthday": "01.01.2000",
"stayLoggedIn": false
},
{
"id": "57b7fb2e-50c1-4027-8871-58cbfc8405c8",
"userName": "New",
"password": "123456",
"birthday": "",
"stayLoggedIn": false
}
]
Loading…
Cancel
Save