Skip to content
Permalink
Browse files

Fixed sending of headers when ajaxLogin is set

  • Loading branch information...
davidsteinsland committed Jul 22, 2014
1 parent 9b8e640 commit b61972871a61f0f6ed064600d678d57009f4b6be
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/Cake/Controller/Component/AuthComponent.php
@@ -367,7 +367,8 @@ protected function _unauthenticated(Controller $controller) {
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;
}

0 comments on commit b619728

Please sign in to comment.
You can’t perform that action at this time.