From 3c0edbc4319921de51e325f056b58fb371700176 Mon Sep 17 00:00:00 2001 From: Reshad Meher Date: Fri, 27 Jan 2023 15:17:17 +0100 Subject: [PATCH] new Regisiteren View --- .idea/.gitignore | 3 + .idea/encodings.xml | 7 ++ .idea/misc.xml | 12 ++++ .idea/vcs.xml | 6 ++ database.db | Bin 0 -> 86016 bytes .../SingUpController.java | 65 ++++++++++++++++++ .../Neues Textdokument (2).txt | 0 .../Neues Textdokument.txt | 0 8 files changed, 93 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 .idea/encodings.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/vcs.xml create mode 100644 database.db create mode 100644 src/main/java/com/bib/essensbestellungsverwaltung/SingUpController.java create mode 100644 src/main/resources/com/bib/essensbestellungsverwaltung/Neues Textdokument (2).txt create mode 100644 src/main/resources/com/bib/essensbestellungsverwaltung/Neues Textdokument.txt diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000..aa00ffa --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..2738f8e --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,12 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/database.db b/database.db new file mode 100644 index 0000000000000000000000000000000000000000..a8ea934b0fe970fefd6ba698b42e08519a783d11 GIT binary patch literal 86016 zcmeI*&2QW09S87-er!>qBtCwVSwq#VpeSUu&N4U1a@e8qGC9larm2-I%P>HrB`V@V zQyNLPNroQmp#Q^m*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$w0OlQS++`Cd>bvdvKw)}8go=9{pEF9A@{{7A{yl@M&cXzh=_AS27tSAHP zUO3g}=LvsOsTalir^PS4AOHafKmY;|fB*y_009U<00IzrRs}@`fQusU>oclTV@qDseY_JQs3v5 z@qz#ZAOHafKmY;|fB*y_009Vm&H@Vyl$_n@+x(#iZ<_pp4)!hA_4?iJY>ASWn+FdL zej$bvZBY?J+seSv+M4OpH1fVJ7r*pJx1)jzWLKj$Gv^ALal1Rwwb2tWV=5P$##AOHbE zGsK%G#`F}1;OMJ@iW<^6$ z{x7Talr+l!Gh%j>|4)hdhWY=bXv@$4soxgQ|0iTx%8C3x`1}8dg#Cy8gFVCs1_1~_ z00Izz00bZa0SG_<0uX?}Qznq-m;Ean{2m2y8-l{G{FiU&j?Hh6Q253F^4E1|$LhPm z-~T@%?7!?0`{z>@A-W3z2tWV=5P$##AOHafKmY;|fB+Hq3q<)p6*nh@`TvAM%egTB z$N&Gsh5`WyKmY;|fB*y_009U<00Izr_65ZCe=_~-$B76b009U<00Izz00bZa0SG_< z0%;b&_5U=FK4OOe1Rwwb2tWV=5P$##AOL~12q6DY%Sa<-FhX4d1009U<00Izz00bZafwTx9|4++EBTfiF00Izz00bZa0SG_<0uV^E z0RI19nnxe8LjVF0fB*y_009U<00IzzKw1QF{XZ=ujW{6y0SG_<0uX=z1Rwwb2tXjs z0=WL4=Fvy&5P$##AOHafKmY;|fB*y_kQM=4|4++EBTfiF00Izz00bZa0SG_<0uV^E f0P_Ddk3M3D00bZa0SG_<0uX=z1Rwx`v benutzermap = new HashMap<>(); + @FXML + private void onKontoErstellenBtClick(){ + String email = tfEmail.getText(); + String bestätigungEmail = tfBestätigungEmail.getText(); + String passwort = pfPasswort.getText(); + String bestätigungPasswort = pfBestätigungPassowrt.getText(); + if(!(email.isEmpty() || bestätigungEmail.isEmpty() || passwort.isEmpty() && bestätigungEmail.isEmpty() || bestätigungPasswort.isEmpty())){ + + Alert alert; + if(bestätigungEmail.equals(email) && bestätigungPasswort.equals(passwort)){ + alert = new Alert(Alert.AlertType.CONFIRMATION,"okay"); + alert.showAndWait(); + benutzermap.put(email,passwort); + System.out.println(benutzermap); + }else { + alert = new Alert(Alert.AlertType.ERROR,"Die Eingabe passt nicht."); + alert.showAndWait(); + } + tfEmail.setText(""); + tfBestätigungEmail.setText(""); + pfPasswort.setText(""); + pfBestätigungPassowrt.setText(""); + } + else { + Alert alert = new Alert(Alert.AlertType.ERROR,"Eingabefield sind leer"); + alert.showAndWait(); + } + } + + @FXML + private void onAnmeldenBtClick() throws IOException { + FXMLLoader fxmlLoader = new FXMLLoader(HelloApplication.class.getResource("login-view.fxml")); + Scene scene = new Scene(fxmlLoader.load(), 950,480); + HelloApplication.primary.setScene(scene); + } + public HashMap getBenutzermap() { + return benutzermap; + } + +} diff --git a/src/main/resources/com/bib/essensbestellungsverwaltung/Neues Textdokument (2).txt b/src/main/resources/com/bib/essensbestellungsverwaltung/Neues Textdokument (2).txt new file mode 100644 index 0000000..e69de29 diff --git a/src/main/resources/com/bib/essensbestellungsverwaltung/Neues Textdokument.txt b/src/main/resources/com/bib/essensbestellungsverwaltung/Neues Textdokument.txt new file mode 100644 index 0000000..e69de29