From c4898dadce14365268de744edb8040696d50da4a Mon Sep 17 00:00:00 2001 From: Adah Boukhari Date: Sun, 9 Feb 2020 13:42:47 +0100 Subject: [PATCH] Commit_48 Benutzername = admin && password = admin --- .../bin/MeinBudgetView/LoginFrame.class | Bin 4428 -> 4572 bytes .../src/MeinBudgetView/LoginFrame.java | 6 +++--- Command.txt | 3 +++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Budget Projekt/bin/MeinBudgetView/LoginFrame.class b/Budget Projekt/bin/MeinBudgetView/LoginFrame.class index b4eb77a82c295f1213ae5dffc2b7bbaaa69a1a5f..0ea254134a57b0fba7f1230bf05b0e4adfeb8ec5 100644 GIT binary patch delta 788 zcmY+B$xl;J6ow=iLqnbj*VPQl?#CZlMoaX_>k$Br0shgAgyJ!5)8Oz?pIP| zyMqjOGCC_h3~lt|W@LC*HEC_+V)<1uxi58Du9)dO5E&rgkV zrC;Qj*e`4@7GbN%U<*#F$)}c5wo=J9@!HM~>Ny}HauR(Ab5JPJksI6;Q`VBkEpCfB z?pVcl8YZWuki_L$txJq5t4+Qu9P#5Bt=58!d&IQFI1|QUYjNm44}_9<$b_)j!Z-Ps z%9j`AkxdD+CJ8LcvtE`au|;{+OZIZK~BYM=wZyJLEgnhSs1%0ILPNH zUn3SO;;-*Uoo!xS9-S1@MKRsD=wU6pC}%engs5Q;9`@40zND4-{;kAE0;Oqi!39y=5yb^}T;rQh#;;Rj%FE5Y=icw!bM80qpI)m@{keP<=;Y^^ z>QJg>Zb&qm3reF$WfEU0+}4=ljyb9vGyTd|zeIh{(MUQHI37vF1N)4@fkb?}ggd1h zy^&NZlN^khtJPR!o>ww2C7SHvNX7{0X+2>CcIvsVQljyiaS1i98v+U?W4g)$?_}Oe zcq=~S-cz$v`- zo4;#2+tw8bTNEs;Gps7G*J8rXz2i*wUE=1hjV_B@<^j)|9U%^~hkn8w64?<(1xZVp ziacjUB}kd(t`HKYihIn6Rrdv2h0|XXK;r=q%?VFXc_cuM$9C0fHhF8^Pbgs$Pnk74 zyjzBzF()dC=gf-OAbNBEbVoN>yzr`dHdjb*u8`iaMEZHO^%v=`zf$Cy{nE%IJBz%r zi=I3_K~v;|#b?1`Ctt@fe|eW3ZY51S88(q6NRDlsB*ZDY8KReA`Zz7lFj8@d=>J1R oDLZIia)@eN!5VFaaP-ag* 0 - && passwordField.getText().length() > 0) { + if (ae.getSource() == this.anmelden && benutzername.getText() != setBenutzername("admin") + && passwordField.getText() != setPassword("admin")) { MeinGui run = new MeinGui(); run.setVisible(true); @@ -114,7 +114,7 @@ public class LoginFrame extends JFrame implements ActionListener, KeyListener { public void keyPressed(KeyEvent e) { if (e.getKeyCode() == KeyEvent.VK_ENTER) { - if (benutzername.getText().length() > 0 && passwordField.getText().length() > 0) { + if (benutzername.getText().contentEquals(setBenutzername("admin")) && passwordField.getText().equals(setPassword("admin"))) { MeinGui run = new MeinGui(); run.setVisible(true); } else { diff --git a/Command.txt b/Command.txt index 0c56c72..9602535 100644 --- a/Command.txt +++ b/Command.txt @@ -1,4 +1,7 @@ Befehle: +1)Benutzername: admin +2)Password: admin + L: Alle Einträge leeren F5: Exit