feat: verify email (CAS-66) #192

Merged
csimonis merged 7 commits from feat/verify-email into main 2025-05-15 09:05:30 +00:00
Showing only changes of commit db9fe84259 - Show all commits

View file

@ -36,6 +36,6 @@ public class GlobalExceptionHandler {
@ExceptionHandler(EmailNotVerifiedException.class) @ExceptionHandler(EmailNotVerifiedException.class)
public ResponseEntity<?> handleEmailNotVerifiedException(EmailNotVerifiedException ex, WebRequest request) { public ResponseEntity<?> handleEmailNotVerifiedException(EmailNotVerifiedException ex, WebRequest request) {
ErrorDetails errorDetails = new ErrorDetails(new Date(), ex.getMessage(), request.getDescription(false)); ErrorDetails errorDetails = new ErrorDetails(new Date(), ex.getMessage(), request.getDescription(false));
return new ResponseEntity<>(errorDetails, HttpStatus.BAD_REQUEST); return new ResponseEntity<>(errorDetails, HttpStatus.UNAUTHORIZED);
} }
} }