diff --git a/.idea/misc_.xml b/.idea/misc_.xml new file mode 100644 index 0000000..0e04cb5 --- /dev/null +++ b/.idea/misc_.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/vcs_.xml b/.idea/vcs_.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs_.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/main/java/com/bib/essensbestellungsverwaltung/LoginController.java b/src/main/java/com/bib/essensbestellungsverwaltung/LoginController.java index 6cc85e1..0a8ab36 100644 --- a/src/main/java/com/bib/essensbestellungsverwaltung/LoginController.java +++ b/src/main/java/com/bib/essensbestellungsverwaltung/LoginController.java @@ -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(); diff --git a/src/main/java/com/bib/essensbestellungsverwaltung/StartViewApplication.java b/src/main/java/com/bib/essensbestellungsverwaltung/StartViewApplication.java index ffc7b5a..9ff8693 100644 --- a/src/main/java/com/bib/essensbestellungsverwaltung/StartViewApplication.java +++ b/src/main/java/com/bib/essensbestellungsverwaltung/StartViewApplication.java @@ -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) {