Fixed domain lib

This commit is contained in:
Eldad Fux 2020-10-24 07:48:19 +03:00
parent c3511b0080
commit cfbc32122f

View file

@ -67,7 +67,7 @@ $utopia->init(function () use ($utopia, $request, $response, &$user, $project, $
? $origin : 'localhost') . (!empty($port) ? ':'.$port : '');
$selfDomain = new Domain(Config::getParam('hostname'));
$endDomain = new Domain($origin);
$endDomain = new Domain((string)$origin);
Config::setParam('domainVerification',
($selfDomain->getRegisterable() === $endDomain->getRegisterable()) &&