diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 3771e14..0000000 Binary files a/.DS_Store and /dev/null differ diff --git a/src/.DS_Store b/src/.DS_Store deleted file mode 100644 index 6d1564c..0000000 Binary files a/src/.DS_Store and /dev/null differ diff --git a/src/main/.DS_Store b/src/main/.DS_Store deleted file mode 100644 index e02cf69..0000000 Binary files a/src/main/.DS_Store and /dev/null differ 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 3a2b8cc..0000000 Binary files a/src/main/resources/.DS_Store and /dev/null differ