Fixed sending of headers when ajaxLogin is set

This commit is contained in:
David Steinsland 2014-07-22 13:21:42 +02:00
parent 9b8e6403fd
commit b61972871a

View file

@ -367,7 +367,8 @@ class AuthComponent extends Component {
if (!empty($this->ajaxLogin)) {
$controller->response->statusCode(403);
$controller->viewPath = 'Elements';
echo $controller->render($this->ajaxLogin, $this->RequestHandler->ajaxLayout);
$response = $controller->render($this->ajaxLogin, $this->RequestHandler->ajaxLayout);
$response->send();
$this->_stop();
return false;
}