JacksonUtil.writeValue(response.getWriter(),ThingsboardErrorResponse.of(authenticationException.getMessage().isEmpty()?"Invalid username or password":authenticationException.getMessage(),ThingsboardErrorCode.AUTHENTICATION,HttpStatus.UNAUTHORIZED));
Stringmessage=(authenticationException.getMessage()==null||authenticationException.getMessage().isEmpty())?"Invalid username or password":authenticationException.getMessage();
JacksonUtil.writeValue(response.getWriter(),ThingsboardErrorResponse.of("User account is not active",ThingsboardErrorCode.AUTHENTICATION,HttpStatus.UNAUTHORIZED));