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

Commit 3b7d8d6b authored by AVINASH GUSAIN's avatar AVINASH GUSAIN
Browse files

if moved

parent ea45c82b
Loading
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
--- ./lib/private/User/Manager.php	2023-02-03 17:18:44.729561986 +0530
+++ ./lib/private/User/Manager-new.php	2023-02-09 17:37:59.809738289 +0530
@@ -705,6 +705,20 @@
+++ ./lib/private/User/Manager-new.php	2023-02-09 19:35:34.309722378 +0530
@@ -705,6 +705,19 @@
 	 * @since 9.1.0
 	 */
 	public function getByEmail($email) {
@@ -13,11 +13,10 @@
+					$uid = str_replace($alt_domain_suffix, '', $email);
+			}
+
+		}
+		if ($this->get($uid)) {
+			return([$this->get($uid)]);
+		}
+		}
+
 		// looking for 'email' only (and not primary_mail) is intentional
 		$userIds = $this->config->getUsersForUserValueCaseInsensitive('settings', 'email', $email);