change_user_details require correct password input in order to change

minor_adjustments
Selim Eser 2024-06-13 12:23:56 +02:00
parent b71f9c090a
commit 7df63b10ed
1 changed files with 4 additions and 1 deletions

View File

@ -171,7 +171,10 @@ public class System {
return false; 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; return false;
for(User user: this.all_user) for(User user: this.all_user)