Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit a6da2a60 authored by Akhil's avatar Akhil
Browse files

init conn only if config is defined

parent bc85cfac
Loading
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -31,8 +31,10 @@ class SSOMapper {
		$this->logger = $logger;
		$this->userManager = $userManager;
		$this->crypto = $crypto;
		if (!empty($this->config->getSystemValue(self::SSO_CONFIG_KEY))) {
			$this->initConnection();
		}
	}

	public function isSSOEnabled() : bool {
		return isset($this->conn);