aboutsummaryrefslogtreecommitdiff
path: root/ufund-api
diff options
context:
space:
mode:
authorAkash Keshav <112591754+domesticchores@users.noreply.github.com>2025-03-18 17:57:40 -0400
committerAkash Keshav <112591754+domesticchores@users.noreply.github.com>2025-03-18 17:57:40 -0400
commit423847ccf53f1d0c1acf6f92f68b37067c0843fb (patch)
treedffeed3f99cfebca6cc85bcd33fd6403567605f0 /ufund-api
parent7a5396b65fcde8153c8eeae565bfecb7de37b23f (diff)
downloadJellySolutions-423847ccf53f1d0c1acf6f92f68b37067c0843fb.tar.gz
JellySolutions-423847ccf53f1d0c1acf6f92f68b37067c0843fb.tar.bz2
JellySolutions-423847ccf53f1d0c1acf6f92f68b37067c0843fb.zip
removed auth from problematic function. -ak
Diffstat (limited to 'ufund-api')
-rw-r--r--ufund-api/src/main/java/com/ufund/api/ufundapi/controller/UserController.java9
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);
+ // }
}
/**