1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

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()
{
$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 (Utils::isNinja()) {