Fixes issue where behaviors are not booting
This commit is contained in:
parent
f73d8e6d49
commit
92bd8360b9
|
|
@ -8,10 +8,10 @@ use Event;
|
|||
use Config;
|
||||
use Request;
|
||||
use Response;
|
||||
use Closure;
|
||||
use Illuminate\Routing\Controller as ControllerBase;
|
||||
use October\Rain\Router\Helper as RouterHelper;
|
||||
use System\Classes\PluginManager;
|
||||
use Closure;
|
||||
|
||||
/**
|
||||
* This is the master controller for all back-end pages.
|
||||
|
|
@ -50,13 +50,6 @@ class BackendController extends ControllerBase
|
|||
*/
|
||||
protected $cmsHandling = false;
|
||||
|
||||
/**
|
||||
* Stores the requested controller so that the constructor is only run once
|
||||
*
|
||||
* @var Backend\Classes\Controller
|
||||
*/
|
||||
protected $requestedController;
|
||||
|
||||
/**
|
||||
* Instantiate a new BackendController instance.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -152,6 +152,8 @@ class Controller extends Extendable
|
|||
*/
|
||||
$this->user = BackendAuth::getUser();
|
||||
|
||||
parent::__construct();
|
||||
|
||||
/*
|
||||
* Media Manager widget is available on all back-end pages
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -40,14 +40,6 @@ class Auth extends Controller
|
|||
// $response->headers->set('Cache-Control', 'no-cache, no-store, must-revalidate');
|
||||
// })->only('signin');
|
||||
|
||||
// // Only run on HTTPS connections
|
||||
// if (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] === "on") {
|
||||
// $this->middleware(function ($request, $response) {
|
||||
// // Add HTTP Header 'Clear Site Data' to remove all Sensitive Data when signout, see github issue: #3707
|
||||
// $response->headers->set('Clear-Site-Data', 'cache, cookies, storage, executionContexts');
|
||||
// })->only('signout');
|
||||
// }
|
||||
|
||||
$this->layout = 'auth';
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue