renderAuthenticationDialog(); exit; } if ( Configuration::getConfig('authentication', 'username') === $user && Configuration::getConfig('authentication', 'password') === $password ) { return; } $this->renderAuthenticationDialog(); exit; } private function renderAuthenticationDialog(): void { http_response_code(401); header('WWW-Authenticate: Basic realm="RSS-Bridge"'); print render('error.html.php', ['message' => 'Please authenticate in order to access this instance !']); } }