mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixed sending of headers when ajaxLogin is set
This commit is contained in:
parent
9b8e6403fd
commit
b61972871a
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue