sign_in_user method minor change

sign_in_up_out
Daniel Zdravkovic 2024-06-11 11:00:28 +02:00
parent 5d087518e9
commit 5141d8ec03
1 changed files with 2 additions and 2 deletions

View File

@ -82,8 +82,8 @@ public class System {
return all_users; return all_users;
} }
public boolean sign_in_user(String username, String password) throws IOException { public boolean sign_in_user(String username, String password) {
ArrayList<User> mem = new ArrayList<>(get_all_user()); ArrayList<User> mem = get_all_user();
for (User user : mem) { for (User user : mem) {
if (user.getUsername().equals(username) && decoding(user.getPassword()).equals(password)) { if (user.getUsername().equals(username) && decoding(user.getPassword()).equals(password)) {