Loading lib/Db/SSOMapper.php +4 −0 Original line number Diff line number Diff line Loading @@ -34,6 +34,10 @@ class SSOMapper { $this->initConnection(); } public function isSSOEnabled() : bool { return isset($this->conn); } public function getUserId(string $username) : string { $qb = $this->conn->createQueryBuilder(); $qb->select('USER_ID') Loading lib/Listeners/TwoFactorStateChangedListener.php +1 −1 Original line number Diff line number Diff line Loading @@ -31,7 +31,7 @@ class TwoFactorStateChangedListener implements IEventListener { public function handle(Event $event): void { if (!($event instanceof StateChanged) || !$this->appManager->isEnabledForUser(self::TWOFACTOR_APP_ID)) { if (!($event instanceof StateChanged) || !$this->appManager->isEnabledForUser(self::TWOFACTOR_APP_ID) || !$this->ssoMapper->isSSOEnabled()) { return; } Loading Loading
lib/Db/SSOMapper.php +4 −0 Original line number Diff line number Diff line Loading @@ -34,6 +34,10 @@ class SSOMapper { $this->initConnection(); } public function isSSOEnabled() : bool { return isset($this->conn); } public function getUserId(string $username) : string { $qb = $this->conn->createQueryBuilder(); $qb->select('USER_ID') Loading
lib/Listeners/TwoFactorStateChangedListener.php +1 −1 Original line number Diff line number Diff line Loading @@ -31,7 +31,7 @@ class TwoFactorStateChangedListener implements IEventListener { public function handle(Event $event): void { if (!($event instanceof StateChanged) || !$this->appManager->isEnabledForUser(self::TWOFACTOR_APP_ID)) { if (!($event instanceof StateChanged) || !$this->appManager->isEnabledForUser(self::TWOFACTOR_APP_ID) || !$this->ssoMapper->isSSOEnabled()) { return; } Loading