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

Commit e277355a authored by theronakpatel's avatar theronakpatel
Browse files

stripped data

parent 4dbad921
Loading
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -123,9 +123,6 @@ class SyncMissingUsersToCommon extends Command {
		$this->userManager->callForAllUsers(function (IUser $user) use ($ipAddress, $isDryRun, $output, &$stats) {
			$username = $user->getUID();
			
			// Get user metadata from LDAP to obtain usernameWithoutDomain
			$userMetadata = $this->ldapConnectionService->getUserMetadata($username);
			$usernameWithoutDomain = $userMetadata['usernameWithoutDomain'] ?? $username;
			// Strip legacy domain from username before checking in common DB
			$usernameWithoutDomain = $this->userService->stripLegacyDomainFromUsername($username);
			if ($this->userService->isUsernameTaken($usernameWithoutDomain)) {