From 73a224f8675d46b3cae6e27bc2f150d1daf5ab9a Mon Sep 17 00:00:00 2001 From: Malik <3097625+dermalikmann@users.noreply.github.com> Date: Mon, 13 May 2024 14:11:30 +0200 Subject: [PATCH] Forgot to commit includes&dep-injection Signed-off-by: Malik <3097625+dermalikmann@users.noreply.github.com> --- lib/Controller/SAMLController.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/Controller/SAMLController.php b/lib/Controller/SAMLController.php index 865db853b..bcdab8a80 100644 --- a/lib/Controller/SAMLController.php +++ b/lib/Controller/SAMLController.php @@ -45,6 +45,8 @@ use OCP\Security\ICrypto; use OCP\Security\ITrustedDomainHelper; use OCP\Server; +use OCP\User\Events\UserLoggedInEvent; +use OCP\User\Events\UserLoggedOutEvent; use OneLogin\Saml2\Auth; use OneLogin\Saml2\Error; use OneLogin\Saml2\Settings; @@ -94,7 +96,8 @@ public function __construct( UserResolver $userResolver, UserData $userData, ICrypto $crypto, - ITrustedDomainHelper $trustedDomainHelper + ITrustedDomainHelper $trustedDomainHelper, + IEventDispatcher $eventDispatcher ) { parent::__construct($appName, $request); $this->session = $session; @@ -109,6 +112,7 @@ public function __construct( $this->userData = $userData; $this->crypto = $crypto; $this->trustedDomainHelper = $trustedDomainHelper; + $this->eventDispatcher = $eventDispatcher; } /**