Fix for login screen appearing within layout, closes #51.

This commit is contained in:
Dan Cryer 2013-05-22 16:46:59 +01:00
commit 75816c50e7

View file

@ -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');