Skip to content

Commit

Permalink
fixes #143
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanSchubert committed Nov 19, 2023
1 parent ea9b17f commit 547261b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2022 by Stefan Schubert under the MIT License (MIT).
* Copyright (c) 2023 by Stefan Schubert under the MIT License (MIT).
* See project LICENSE file for the detailed terms and conditions.
*/

Expand Down Expand Up @@ -96,7 +96,7 @@ public ResponseEntity<String> requestPasswordReset(@RequestBody ResetPasswordTo
userService.resetPassword(requestData);
} catch (BusinessException e) {
HttpStatus httpStatus = responseState.get(e.getCode());
responseEntity = new ResponseEntity<>(requestData.toString(), (httpStatus == null ? HttpStatus.FAILED_DEPENDENCY : httpStatus));
responseEntity = new ResponseEntity<>("Sorry, something went wrong.", (httpStatus == null ? HttpStatus.FAILED_DEPENDENCY : httpStatus));
}

return responseEntity;
Expand Down

0 comments on commit 547261b

Please sign in to comment.