Fix #31 provide realm based on the external account and directly use the domain

This commit is contained in:
Timothée Jaussoin 2022-08-03 17:09:06 +02:00
parent 01ef34ea8d
commit 31b5cbe059
3 changed files with 3 additions and 3 deletions

View file

@ -21,6 +21,6 @@ class ExternalAccount extends Model
public function getResolvedRealmAttribute() public function getResolvedRealmAttribute()
{ {
return config('app.realm') ?? $this->attributes['domain']; return $this->attributes['domain'];
} }
} }

View file

@ -262,7 +262,7 @@ class ProvisioningController extends Controller
$entry->setAttribute('name', 'ha1'); $entry->setAttribute('name', 'ha1');
$section->appendChild($entry); $section->appendChild($entry);
$entry = $dom->createElement('entry', $account->resolvedRealm); $entry = $dom->createElement('entry', $externalAccount->resolvedRealm);
$entry->setAttribute('name', 'realm'); $entry->setAttribute('name', 'realm');
$section->appendChild($entry); $section->appendChild($entry);

View file

@ -8,7 +8,7 @@
#%define _datadir %{_datarootdir} #%define _datadir %{_datarootdir}
#%define _docdir %{_datadir}/doc #%define _docdir %{_datadir}/doc
%define build_number 146 %define build_number 147
%define var_dir /var/opt/belledonne-communications %define var_dir /var/opt/belledonne-communications
%define opt_dir /opt/belledonne-communications/share/flexisip-account-manager %define opt_dir /opt/belledonne-communications/share/flexisip-account-manager