Fixes #75 user entity not being in the registry
This commit is contained in:
parent
6dce7e2004
commit
3dd6217133
|
@ -10,6 +10,7 @@
|
||||||
namespace PHPCI;
|
namespace PHPCI;
|
||||||
|
|
||||||
use b8;
|
use b8;
|
||||||
|
use b8\Registry;
|
||||||
use b8\Http\Response\RedirectResponse;
|
use b8\Http\Response\RedirectResponse;
|
||||||
use b8\View;
|
use b8\View;
|
||||||
|
|
||||||
|
@ -35,6 +36,9 @@ class Application extends b8\Application
|
||||||
$skipValidation = ($externalAction || $sessionAction);
|
$skipValidation = ($externalAction || $sessionAction);
|
||||||
|
|
||||||
if($skipValidation || $this->validateSession()) {
|
if($skipValidation || $this->validateSession()) {
|
||||||
|
if ( !empty($_SESSION['user']) ) {
|
||||||
|
Registry::getInstance()->set('user', $_SESSION['user']);
|
||||||
|
}
|
||||||
parent::handleRequest();
|
parent::handleRequest();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue