Fix for login screen appearing within layout, closes #51.
This commit is contained in:
parent
ced7e15e0e
commit
75816c50e7
1 changed files with 1 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ class Application extends b8\Application
|
|||
|
||||
if ($this->request->isAjax()) {
|
||||
$this->response->setResponseCode(401);
|
||||
$this->response->setBody('');
|
||||
$this->response->setContent('');
|
||||
} else {
|
||||
$this->response = new RedirectResponse($this->response);
|
||||
$this->response->setHeader('Location', '/session/login');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue