diff --git a/src/nineskeletor-1.0/config/routes.yaml b/src/nineskeletor-1.0/config/routes.yaml index 73c1c19..efff704 100644 --- a/src/nineskeletor-1.0/config/routes.yaml +++ b/src/nineskeletor-1.0/config/routes.yaml @@ -28,6 +28,10 @@ app_logoutcas: path: /logoutcas defaults: { _controller: App\Controller\SecurityController:logout } +app_casdebug: + path: /user/casdebug + defaults: { _controller: App\Controller\SecurityController:casdebug } + #== Config ============================================================================================================== app_config: path: /admin/config diff --git a/src/nineskeletor-1.0/src/Controller/SecurityController.php b/src/nineskeletor-1.0/src/Controller/SecurityController.php index 70bcb8d..bee2e9a 100755 --- a/src/nineskeletor-1.0/src/Controller/SecurityController.php +++ b/src/nineskeletor-1.0/src/Controller/SecurityController.php @@ -186,6 +186,15 @@ class SecurityController extends AbstractController return true; } + public function casdebug() { + $attributes = $this->get('session')->get('attributes'); + + return $this->render('Home/casdebug.html.twig',[ + "useheader" => true, + "usesidebar" => false, + "attributes" => $attributes, + ]); + } private function updateNinegate($user) { diff --git a/src/nineskeletor-1.0/templates/Home/casdebug.html.twig b/src/nineskeletor-1.0/templates/Home/casdebug.html.twig new file mode 100644 index 0000000..af9b355 --- /dev/null +++ b/src/nineskeletor-1.0/templates/Home/casdebug.html.twig @@ -0,0 +1,32 @@ +{% extends "base.html.twig" %} + +{% block body %} +{% if wssuse and app.user %} +{{ render(path("app_wss_sample")) }} +{% endif %} + + + +