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('access-denied.html.php'); } }