Fixes for company domain
This commit is contained in:
parent
5f94787ce2
commit
83da701646
2 changed files with 3 additions and 3 deletions
|
|
@ -257,7 +257,7 @@ class ClientContact extends Authenticatable implements HasLocalePreference
|
|||
*/
|
||||
public function getLoginLink()
|
||||
{
|
||||
$domain = isset($this->company->portal_domain) ?: $this->company->domain();
|
||||
$domain = isset($this->company->portal_domain) ? $this->company->portal_domain : $this->company->domain();
|
||||
|
||||
return $domain . '/client/key_login/' . $this->contact_key;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ trait Inviteable
|
|||
{
|
||||
$entity_type = Str::snake(class_basename($this->entityType()));
|
||||
|
||||
$domain = isset($this->company->portal_domain) ?: $this->company->domain();
|
||||
$domain = isset($this->company->portal_domain) ? $this->company->portal_domain : $this->company->domain();
|
||||
|
||||
switch ($this->company->portal_mode) {
|
||||
case 'subdomain':
|
||||
|
|
@ -69,7 +69,7 @@ trait Inviteable
|
|||
public function getPortalLink() :string
|
||||
{
|
||||
|
||||
$domain = isset($this->company->portal_domain) ?: $this->company->domain();
|
||||
$domain = isset($this->company->portal_domain) ? $this->company->portal_domain : $this->company->domain();
|
||||
|
||||
switch ($this->company->portal_mode) {
|
||||
case 'subdomain':
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue