; if the user is on the // login page they are not authenticated yet. if (!AdminAuth::isAuthenticated()) { http_response_code(204); exit; } $flash = App::consumeFlash(); if (!$flash['error'] && !$flash['success'] && !$flash['warning']) { http_response_code(204); exit; } include APP_ROOT . '/templates/admin/partials/toast.php';