diff --git a/appinfo/info.xml b/appinfo/info.xml index d1f6703..3bb4e30 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -5,7 +5,7 @@ NMC Marketing Marketing tracking aspects for MagentaCLOUD Scripting and CSP rulset to integrate Telekom standard consent and marketing tracking - 0.0.5 + 1.1.0 agpl B. Rederlechner D. Engelschalk diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php index cb59ed0..95ff278 100644 --- a/lib/AppInfo/Application.php +++ b/lib/AppInfo/Application.php @@ -8,7 +8,7 @@ use OCP\AppFramework\Bootstrap\IBootContext; use OCP\AppFramework\Bootstrap\IBootstrap; use OCP\AppFramework\Bootstrap\IRegistrationContext; -use OCP\AppFramework\Http\Events\BeforeTemplateRenderedEvent; +use OCP\AppFramework\Http\Events\BeforeLoginTemplateRenderedEvent; use OCP\Security\CSP\AddContentSecurityPolicyEvent; class Application extends App implements IBootstrap { @@ -21,7 +21,7 @@ public function __construct() { public function register(IRegistrationContext $context): void { //Register the CSPListener and consent layer redirect brake $context->registerEventListener(AddContentSecurityPolicyEvent::class, CSPListener::class); - $context->registerEventListener(BeforeTemplateRenderedEvent::class, BeforeTemplateRenderedListener::class); + $context->registerEventListener(BeforeLoginTemplateRenderedEvent::class, BeforeTemplateRenderedListener::class); } public function boot(IBootContext $context): void {