diff --git a/src/main/java/cactusServer/models/Accounts.java b/src/main/java/cactusServer/models/Accounts.java index 092d95b..1b6a0b6 100644 --- a/src/main/java/cactusServer/models/Accounts.java +++ b/src/main/java/cactusServer/models/Accounts.java @@ -4,6 +4,7 @@ import cactusServer.entities.Account; +import java.net.URI; import java.util.HashMap; import java.util.HashSet; @@ -41,8 +42,12 @@ return editAccount; } - public Account loginAccount(String userID,String userPass) { - return Accounts.getInstance().getAccount(userID); + public URI loginAccount(String userID,String userPass) { + if(idList.contains(userID)) { + return URI.create("http:"); + }else { + return URI.create("failed login attempt"); + } } public String logoutAccount(String userID) {