change_user_password method now needs to take a new password otherwise will return false
parent
00a96494e6
commit
9dc98f62e7
Binary file not shown.
Binary file not shown.
|
@ -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.
Loading…
Reference in New Issue