diff options
| author | Akash Keshav <112591754+domesticchores@users.noreply.github.com> | 2025-03-18 17:57:40 -0400 | 
|---|---|---|
| committer | Akash Keshav <112591754+domesticchores@users.noreply.github.com> | 2025-03-18 17:57:40 -0400 | 
| commit | 423847ccf53f1d0c1acf6f92f68b37067c0843fb (patch) | |
| tree | dffeed3f99cfebca6cc85bcd33fd6403567605f0 /ufund-api/src/main/java | |
| parent | 7a5396b65fcde8153c8eeae565bfecb7de37b23f (diff) | |
| download | JellySolutions-423847ccf53f1d0c1acf6f92f68b37067c0843fb.tar.gz JellySolutions-423847ccf53f1d0c1acf6f92f68b37067c0843fb.tar.bz2 JellySolutions-423847ccf53f1d0c1acf6f92f68b37067c0843fb.zip  | |
removed auth from problematic function. -ak
Diffstat (limited to 'ufund-api/src/main/java')
| -rw-r--r-- | ufund-api/src/main/java/com/ufund/api/ufundapi/controller/UserController.java | 9 | 
1 files changed, 5 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 fd6a960..dfaad3a 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,10 @@ 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); +        // }      }      /**  | 
