From b71f9c090a66d55288d0bde8f558f03cece2525c Mon Sep 17 00:00:00 2001 From: Selim Eser <2211482@stud.hs-mannheim.de> Date: Thu, 13 Jun 2024 12:21:08 +0200 Subject: [PATCH] getDetails method shouldnt return password fix --- src/main/java/de/hs_mannheim/domain/System.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/hs_mannheim/domain/System.java b/src/main/java/de/hs_mannheim/domain/System.java index 2233efa..66cec2a 100644 --- a/src/main/java/de/hs_mannheim/domain/System.java +++ b/src/main/java/de/hs_mannheim/domain/System.java @@ -226,8 +226,8 @@ public class System { } public String[] getDetails(){ - return new String[]{current_user.getUsername(), current_user.getPassword(), - current_user.getHometown(), current_user.getZip(), current_user.getCar_name(), + return new String[]{current_user.getUsername(), current_user.getHometown(), + current_user.getZip(), current_user.getCar_name(), current_user.getCar_l_100km()==0?"":String.valueOf(current_user.getCar_l_100km()), current_user.getCar_avg_kmh()==0?"":String.valueOf(current_user.getCar_avg_kmh()), current_user.getBike_avg_kmh()==0?"":String.valueOf(current_user.getBike_avg_kmh())};