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

Commit fb5a4d86 authored by Akhil's avatar Akhil 🙂
Browse files

Correct the get-by-email patch

parent ff351790
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@ Subject: [PATCH] To optimize getByEmail as we have boundary conditions that emai
-		$users = array_map(function ($uid) {
-			return $this->get($uid);
-		}, $userIds);
+		if(empty($mailDomain) && empty($altMailDomain)) {
+		if(empty($legacyDomain) && empty($mainDomain)) {
+			$userIds = $this->config->getUsersForUserValueCaseInsensitive('settings', 'email', $email);
 
+			$users = array_map(function ($uid) {