diff --git a/src/main/java/cactusServer/models/Accounts.java b/src/main/java/cactusServer/models/Accounts.java index adadbf4..357c8a4 100644 --- a/src/main/java/cactusServer/models/Accounts.java +++ b/src/main/java/cactusServer/models/Accounts.java @@ -4,7 +4,6 @@ import cactusServer.entities.Account; -import java.net.URI; import java.util.HashMap; import java.util.HashSet; @@ -44,9 +43,9 @@ public Account loginAccount(String userID,String userPass) { if(idList.contains(userID) && getAccount(userID).getPass().equals(userPass)) { - return URI.create("http:"); + return getAccount(userID); }else { - return URI.create("failed login attempt"); + return null; } }