function http_auth_cancel_page in HTTP Auth 8
Same name and namespace in other branches
- 7 http_auth.module \http_auth_cancel_page()
Returns the page to the unauthenticated user.
1 call to http_auth_cancel_page()
- http_auth_page_top in ./
http_auth.module - Implements hook_page_top().
File
- ./
http_auth.module, line 45 - Enables Drupal to add HTTP Auth from frontend on all over the site/pages.
Code
function http_auth_cancel_page($message = '') {
$sitename = \Drupal::config('system.site')
->get('name');
if ($sitename == '') {
$sitename = "Locked";
}
return '<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>' . $sitename . ' | Restricted Site</title>
</head>
<body class="http-restricted">
<p>' . $message . '</p>
</body>
</html>';
}