From 54876363de44791ba65b6c43b795f8d0c3548ecc Mon Sep 17 00:00:00 2001 From: sowgro Date: Mon, 17 Mar 2025 21:45:31 -0400 Subject: Fix tests --- .../src/main/java/com/ufund/api/ufundapi/service/AuthService.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ufund-api/src/main/java/com/ufund/api/ufundapi/service/AuthService.java') diff --git a/ufund-api/src/main/java/com/ufund/api/ufundapi/service/AuthService.java b/ufund-api/src/main/java/com/ufund/api/ufundapi/service/AuthService.java index c847cac..87a16a6 100644 --- a/ufund-api/src/main/java/com/ufund/api/ufundapi/service/AuthService.java +++ b/ufund-api/src/main/java/com/ufund/api/ufundapi/service/AuthService.java @@ -26,10 +26,10 @@ public class AuthService { * @throws IllegalAccessException Thrown if access was denied to the user. */ public void authenticate(String targetUsername, String key) throws IllegalAccessException, IOException { -// var userAuth = userAuthDAO.getUserAuth(key); -// if (userAuth == null) { -// throw new IllegalAccessException("Unauthenticated"); -// } + var userAuth = userAuthDAO.getUserAuth(key); + if (userAuth == null) { + throw new IllegalAccessException("Unauthenticated"); + } // // var username = userAuth.getUsername(); // var userType = userService.getUser(username).getType(); -- cgit v1.2.3