From 2c387cda0de228ea7dab322a317cb83d1d6bfa53 Mon Sep 17 00:00:00 2001 From: richard Date: Wed, 1 Feb 2023 11:58:14 +0100 Subject: [PATCH 1/2] New.01 --- .../com/bib/essensbestellungsverwaltung/LoginController.java | 1 + .../bib/essensbestellungsverwaltung/StartViewApplication.java | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) 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) { From 54c3b9f3f5450bd1bb6b0f51f7ee0fba7438be97 Mon Sep 17 00:00:00 2001 From: richard Date: Wed, 1 Feb 2023 11:59:56 +0100 Subject: [PATCH 2/2] New.01 --- .idea/misc_.xml | 4 ++++ .idea/vcs_.xml | 6 ++++++ 2 files changed, 10 insertions(+) create mode 100644 .idea/misc_.xml create mode 100644 .idea/vcs_.xml 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