mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 13:54:26 +02:00
Use Request::setBody() for cookies disabled message
This commit is contained in:
parent
016bcf070f
commit
e92414ea6d
@ -38,8 +38,11 @@ class AuthenticationController extends Controller
|
|||||||
}
|
}
|
||||||
if (! $requiresSetup) {
|
if (! $requiresSetup) {
|
||||||
if (! $this->getRequest()->hasCookieSupport()) {
|
if (! $this->getRequest()->hasCookieSupport()) {
|
||||||
echo $this->translate("Cookies must be enabled to run this application.\n");
|
$this
|
||||||
$this->getResponse()->setHttpResponseCode(403)->sendHeaders();
|
->getResponse()
|
||||||
|
->setBody("Cookies must be enabled to run this application.\n")
|
||||||
|
->setHttpResponseCode(403)
|
||||||
|
->sendResponse();
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
$form->handleRequest();
|
$form->handleRequest();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user