ResponseEntity < UserDTO > function ( ) { return Optional . ofNullable ( userService . getUserWithAuthorities ( ) ) . map ( user -> new ResponseEntity < > ( new UserDTO ( user ) , HttpStatus . OK ) ) . orElse ( new ResponseEntity < > ( HttpStatus . INTERNAL_SERVER_ERROR ) ) ; }
get / account : get the current user . concode_field_sep Logger log concode_elem_sep UserRepository userRepository concode_elem_sep MailService mailService concode_elem_sep UserService userService concode_field_sep ResponseEntity<String> finishPasswordReset concode_elem_sep ResponseEntity<?> registerAccount concode_elem_sep boolean checkPasswordLength concode_elem_sep String isAuthenticated concode_elem_sep ResponseEntity<?> requestPasswordReset concode_elem_sep ResponseEntity<String> activateAccount concode_elem_sep ResponseEntity<String> saveAccount concode_elem_sep ResponseEntity<?> changePassword