mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-13 06:32:40 +01:00
Fixes for custom client portal subdomains
This commit is contained in:
parent
ad853569da
commit
891c742c5d
@ -74,9 +74,9 @@ class UpdateCompanyRequest extends Request
|
|||||||
|
|
||||||
$input = $this->all();
|
$input = $this->all();
|
||||||
|
|
||||||
if (Ninja::isHosted() && array_key_exists('portal_domain', $input) && strlen($input['portal_domain']) > 1) {
|
if (array_key_exists('portal_domain', $input) && strlen($input['portal_domain']) > 1) {
|
||||||
$input['portal_domain'] = $this->addScheme($input['portal_domain']);
|
$input['portal_domain'] = $this->addScheme($input['portal_domain']);
|
||||||
$input['portal_domain'] = strtolower($input['portal_domain']);
|
$input['portal_domain'] = rtrim(strtolower($input['portal_domain']), "/");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_key_exists('settings', $input)) {
|
if (array_key_exists('settings', $input)) {
|
||||||
|
@ -95,7 +95,7 @@ trait Inviteable
|
|||||||
if (Ninja::isHosted()) {
|
if (Ninja::isHosted()) {
|
||||||
$domain = $this->company->domain();
|
$domain = $this->company->domain();
|
||||||
} else {
|
} else {
|
||||||
$domain = config('ninja.app_url');
|
$domain = strlen($this->company->portal_domain) > 5 ? $this->company->portal_domain : config('ninja.app_url');
|
||||||
}
|
}
|
||||||
|
|
||||||
switch ($this->company->portal_mode) {
|
switch ($this->company->portal_mode) {
|
||||||
|
Loading…
Reference in New Issue
Block a user