This commit is contained in:
Richard Reiswich 2023-02-01 11:58:14 +01:00
parent 3613e246c9
commit 2c387cda0d
2 changed files with 1 additions and 2 deletions

View File

@ -27,6 +27,7 @@ public class LoginController {
if(benutzerMap.containsKey(email) && benutzerMap.containsValue(password)){
// if user is worker: StartViewApplication.changeScene("workerMenu-view.fxml");
StartViewApplication.changeScene("parentMenu-view.fxml");
}else {
Alert alert = new Alert(Alert.AlertType.ERROR,"Email oder Passwort ist falsch");
alert.showAndWait();

View File

@ -24,8 +24,6 @@ public class StartViewApplication extends Application {
stage.setTitle("Essen Bestellung im Kindergarten");
stage.setScene(scene);
stage.show();
}
public static void main(String[] args) {