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

Commit f2bd5edb authored by Fahim Salam Chowdhury's avatar Fahim Salam Chowdhury 👽
Browse files

chore: update according to review

parent 0e7865d2
Loading
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -180,17 +180,15 @@ class SSOService {
		$username = $this->sanitizeUserName($username);

		foreach($users as $ssoUser) {
			if (!isset($ssoUser)) {
			if (!isset($ssoUser['username']) || !isset($ssoUser['id'])) {
				continue;
			}

			$ssoUserName = $this->sanitizeUserName($ssoUser['username']);
			$ssoUserName = $ssoUser['username'];
			if ($ssoUserName === $username) {
				$ssoUserId = $ssoUser['id'];
				break;
			}

			$ssoUserName = '';
		}

		if (empty($ssoUserId) || empty($ssoUserName)) {