From 9dc98f62e7bf0aa5d5399e066817a048a1a0cf91 Mon Sep 17 00:00:00 2001 From: Selim Eser <2211482@stud.hs-mannheim.de> Date: Sun, 16 Jun 2024 21:38:24 +0200 Subject: [PATCH] change_user_password method now needs to take a new password otherwise will return false --- .DS_Store | Bin 6148 -> 0 bytes src/.DS_Store | Bin 6148 -> 0 bytes src/main/.DS_Store | Bin 6148 -> 0 bytes src/main/java/de/hs_mannheim/domain/System.java | 3 +++ src/main/resources/.DS_Store | Bin 6148 -> 0 bytes 5 files changed, 3 insertions(+) delete mode 100644 .DS_Store delete mode 100644 src/.DS_Store delete mode 100644 src/main/.DS_Store delete mode 100644 src/main/resources/.DS_Store diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 3771e149e976ea9b1da9a0a40572d7bcb9ea943d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHKO;6iE5S=9{aX^)F04W!wm3ob+`4AG~Vgej`t*iFXR>39_SQu{o6R8fX1n*M=tGHN9r9)t*kb{N0Y+^LJ()Io;p( zJ92ktZ#HXs>z_U!eC=JPSDCuiU6H^Frsbo>XSjo5d%g}wS*o&gcsP5R3W~tRISr_& z@*y@5f5}=U_noj(>FFPC(7uxeXTW~(-s*zCr+YoefMek88Q}FnLKy>#r9r)PV9-YZ zU>$BPu=%HfYox`%VrdW&h%lutPS3Z+fXftNj89i#nK==5ceaXX>fyM;7u8L0t)D=mjD0& diff --git a/src/.DS_Store b/src/.DS_Store deleted file mode 100644 index 6d1564ca39878e54485c59d12be32de477c5ac37..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHKy-ve05I(noCPGLZK?B*YR*8CVH|0Z>V31rZ@eO-hHVQf7D9ns=M3X=CJM#b~e1ayS2GJ96I*$%G&Nx>o&Pd<)fxv;D4!P(clQ4 zurglHL(okVnO>uf{4L0#0~zE~d^}^{M?SF0!VEA2%)p;yz?_Zt!k_$l{%B@^8Td{H z=zMTd34McwMs;*xp;7=udPXY2x_bH}x@17~4Hg>Ff+BP%q7D@%#SkWQ5IP+DedAwf z)Zrl1%s7sjS(pq(n8ZW4${mESkxOQP8JJ|CteaK3{|~;-|0jdE#SAb5|B3-&HG^gY zmt^kNnZ?mv>!Mzwl8|4aaU6mbbrqv8UBxw2C1`i4g6JD8G@=EC9|DR7E|`HIW#ApQ CrC@;o diff --git a/src/main/.DS_Store b/src/main/.DS_Store deleted file mode 100644 index e02cf694af7f33b416bb6e2ff7b0a069a28145fe..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHKO-sW-5S?wSCKRCug&qT5i$+@t;w4r+cr~I2m726gqcK~WejG|6XZE5HgY zfdaHYIOv3)!AzstIPPIa|Lij?P*K{T7{!#$_76C>W@t7{}64Tt-)h?G6Qqp218bwxIDvK*_)bEAXcZ Fd;%+*XA}Sc diff --git a/src/main/java/de/hs_mannheim/domain/System.java b/src/main/java/de/hs_mannheim/domain/System.java index 83d6686..1bb68a8 100644 --- a/src/main/java/de/hs_mannheim/domain/System.java +++ b/src/main/java/de/hs_mannheim/domain/System.java @@ -225,6 +225,9 @@ public class System { if (!new_password.equals(new_password_authentication)) return false; + if(old_password.equals(new_password)) + return false; + for (int i = 0; i < this.all_user.size(); i++) if (this.all_user.get(i).getUsername().equals(current_user.getUsername())) this.all_user.remove(i); diff --git a/src/main/resources/.DS_Store b/src/main/resources/.DS_Store deleted file mode 100644 index 3a2b8cc0e799bfb9f131fb395cbc223e3b4ee749..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHKF;2rk5S%p;7+FXuq4NtOQBlyCC=}E@0GxybBnw-HP*Az&D}0a&X75hHiQ^Ul z+Ku++yq?MV#+J_qK*p>2DKG>OGZmvlHakMkYjz?Em3^YP{}`ddBbHZ1IqR^k@EaY_ zdlw_e3ePCfx_{H6obsGL7#GaZrwjIg1PdzeQS+B$-lKXa^Sq^sQE-$Bcf0v=LjGBc zpO9PgnihDVvQPC!Rr}hGIK~s%HEwuiIcJq~ycugR`c!_;N`=sw&i_vx9g=yp)*LVgHXYdWheKWe zFZ=iZn<6_h2h4$g<$w$(*OM`)6xP