Skip to content

Commit

Permalink
Add default case for password change error check
Browse files Browse the repository at this point in the history
  • Loading branch information
DevDonut committed Jan 30, 2021
1 parent 495b496 commit 3ff318e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ public ResponseEntity<?> changeCurrentUserPassword(@AuthenticationPrincipal User

} else if (e instanceof AccessDeniedException) {
return createResponseEntity(HttpStatus.FORBIDDEN, e.getMessage());
} else {
return createResponseEntity(HttpStatus.INTERNAL_SERVER_ERROR, "Something went wrong, please try again!");
}
}

Expand Down

0 comments on commit 3ff318e

Please sign in to comment.