Skip to content

Commit

Permalink
Fixed sending of headers when ajaxLogin is set
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsteinsland committed Jul 22, 2014
1 parent 9b8e640 commit b619728
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Cake/Controller/Component/AuthComponent.php
Expand Up @@ -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;
}
Expand Down

0 comments on commit b619728

Please sign in to comment.