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:
parent
b6527eef1b
commit
4d618b87ea
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user