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

Commit 2a14745b authored by Ronak Patel's avatar Ronak Patel
Browse files

refactored code

parent b3a02d77
Loading
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -61,6 +61,12 @@ class UserController extends ApiController {
				$uid = str_replace($mainDomainSuffix, '', $uid);
			}
			$exists = $this->userService->userExists($uid);
			if(!$exists) {
				$exists = $this->userService->userExists($uid . $mainDomainSuffix);
			}
			if(!$exists) {
				$exists = $this->userService->userExists($uid . $legacyDomainSuffix);
			}
		}
		$response->setData($exists);
		return $response;