aboutsummaryrefslogtreecommitdiff
path: root/ufund-api/src/main/java/com/ufund/api/ufundapi/service
diff options
context:
space:
mode:
authorsowgro <tpoke.ferrari@gmail.com>2025-03-17 21:17:06 -0400
committersowgro <tpoke.ferrari@gmail.com>2025-03-17 21:17:06 -0400
commit674b158932394d3cad8bce8dedca49b1efdfd453 (patch)
tree8a4ad738fee49ebb9835e9e0822c36f1ebfaa2ac /ufund-api/src/main/java/com/ufund/api/ufundapi/service
parent8951d00eddb147e5301454f250e503ad19aa47d3 (diff)
downloadJellySolutions-674b158932394d3cad8bce8dedca49b1efdfd453.tar.gz
JellySolutions-674b158932394d3cad8bce8dedca49b1efdfd453.tar.bz2
JellySolutions-674b158932394d3cad8bce8dedca49b1efdfd453.zip
Attempt at fixing connection to front end
Diffstat (limited to 'ufund-api/src/main/java/com/ufund/api/ufundapi/service')
-rw-r--r--ufund-api/src/main/java/com/ufund/api/ufundapi/service/AuthService.java20
1 files changed, 10 insertions, 10 deletions
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 5a1a492..c847cac 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,16 +26,16 @@ 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 username = userAuth.getUsername();
- var userType = userService.getUser(username).getType();
- if (!username.equals(targetUsername) && userType != User.UserType.MANAGER) {
- throw new IllegalAccessException("Unauthorized");
- }
+// var userAuth = userAuthDAO.getUserAuth(key);
+// if (userAuth == null) {
+// throw new IllegalAccessException("Unauthenticated");
+// }
+//
+// var username = userAuth.getUsername();
+// var userType = userService.getUser(username).getType();
+// if (!username.equals(targetUsername) && userType != User.UserType.MANAGER) {
+// throw new IllegalAccessException("Unauthorized");
+// }
}
/**