diff --git a/src/main/java/de/hs_mannheim/domain/System.java b/src/main/java/de/hs_mannheim/domain/System.java index 66cec2a..3494cd1 100644 --- a/src/main/java/de/hs_mannheim/domain/System.java +++ b/src/main/java/de/hs_mannheim/domain/System.java @@ -171,7 +171,10 @@ public class System { return false; } - if(username.equals("")||password.equals("")||hometown.equals("")||zip.equals("")) + if(!current_user.getPassword().equals(password)) + return false; + + if(username.equals("")||hometown.equals("")||zip.equals("")) return false; for(User user: this.all_user)