diff options
author | Gunther6070 <haydenhartman10@yahoo.com> | 2025-03-18 17:08:16 -0400 |
---|---|---|
committer | Gunther6070 <haydenhartman10@yahoo.com> | 2025-03-18 17:08:16 -0400 |
commit | 872a87879c83c9dd7548528fd9f9f29246dbd433 (patch) | |
tree | 5f6e6f3d7c8a80dc6e0d050ee877a7373138e6ae | |
parent | ca7d72e43407a49b147673ebc5ab8b155a8216ac (diff) | |
download | JellySolutions-872a87879c83c9dd7548528fd9f9f29246dbd433.tar.gz JellySolutions-872a87879c83c9dd7548528fd9f9f29246dbd433.tar.bz2 JellySolutions-872a87879c83c9dd7548528fd9f9f29246dbd433.zip |
Uncommented authentication calls
-rw-r--r-- | ufund-api/src/main/java/com/ufund/api/ufundapi/controller/UserController.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ufund-api/src/main/java/com/ufund/api/ufundapi/controller/UserController.java b/ufund-api/src/main/java/com/ufund/api/ufundapi/controller/UserController.java index a16fdec..fd6a960 100644 --- a/ufund-api/src/main/java/com/ufund/api/ufundapi/controller/UserController.java +++ b/ufund-api/src/main/java/com/ufund/api/ufundapi/controller/UserController.java @@ -104,7 +104,7 @@ public class UserController { public ResponseEntity<User> updateUser(@RequestBody User user, @PathVariable String username, @RequestHeader("jelly-api-key") String key) { LOG.log(Level.INFO,"PUT: " + user + " " + username + " " + key.toString()); try { - //authService.authenticate(username, key); + authService.authenticate(username, key); user = userService.updateUser(user, username); if (user != null) { return new ResponseEntity<>(user, HttpStatus.OK); @@ -115,9 +115,9 @@ public class UserController { return new ResponseEntity<>(HttpStatus.BAD_REQUEST); } catch (IOException e) { return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR); - } //catch (IllegalAccessException e) { - // return new ResponseEntity<>(HttpStatus.UNAUTHORIZED); - // } + } catch (IllegalAccessException e) { + return new ResponseEntity<>(HttpStatus.UNAUTHORIZED); + } } /** |