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