mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Fix subdomain check
This commit is contained in:
parent
b6527eef1b
commit
4d618b87ea
@ -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()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user