Fix subdomain check

This commit is contained in:
Hillel Coren 2018-02-16 15:08:49 +02:00
parent b6527eef1b
commit 4d618b87ea

View File

@ -58,7 +58,7 @@ class LoginController extends Controller
public function showLoginForm() public function showLoginForm()
{ {
$subdomain = Utils::getSubdomain(\Request::server('HTTP_HOST')); $subdomain = Utils::getSubdomain(\Request::server('HTTP_HOST'));
$hasAccountIndentifier = request()->account_key || ($subdomain && $subdomain != 'app'); $hasAccountIndentifier = request()->account_key || ($subdomain && ! in_array($subdomain, ['www', 'app']));
if (! session('contact_key')) { if (! session('contact_key')) {
if (Utils::isNinja()) { if (Utils::isNinja()) {