diff --git a/src/main/java/cactusServer/models/Accounts.java b/src/main/java/cactusServer/models/Accounts.java index 1b6a0b6..adadbf4 100644 --- a/src/main/java/cactusServer/models/Accounts.java +++ b/src/main/java/cactusServer/models/Accounts.java @@ -42,8 +42,8 @@ return editAccount; } - public URI loginAccount(String userID,String userPass) { - if(idList.contains(userID)) { + public Account loginAccount(String userID,String userPass) { + if(idList.contains(userID) && getAccount(userID).getPass().equals(userPass)) { return URI.create("http:"); }else { return URI.create("failed login attempt");