currentUser.setPassword(userPassword.getNewPassword());
userService.updatePassword(currentUser);
log.debug("User password updated : {}", currentUser);
return new UserPassword();
} catch (Exception e) {
response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
return null;
}
}