change_user_password method now needs to take a new password otherwise will return false

bugfix_branch
Selim Eser 2024-06-16 21:38:24 +02:00
parent 00a96494e6
commit 9dc98f62e7
5 changed files with 3 additions and 0 deletions

BIN
.DS_Store vendored

Binary file not shown.

BIN
src/.DS_Store vendored

Binary file not shown.

BIN
src/main/.DS_Store vendored

Binary file not shown.

View File

@ -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);

Binary file not shown.