Fix FLEXIAPI-319 Fix the admin device deletion link, recover the missing method

This commit is contained in:
Timothée Jaussoin 2025-06-09 09:59:59 +00:00
parent 92825b0211
commit fae800343f
2 changed files with 7 additions and 2 deletions

View file

@ -339,6 +339,11 @@ class Account extends Authenticatable
return null;
}
public function getProvisioningLinphoneUriAttribute(): string
{
return str_replace('https://', 'linphone-config:', route('provisioning.provision', ['provisioning_token' => $this->provisioning_token]));
}
public static function dtmfProtocolsRule()
{
return implode(',', array_keys(self::$dtmfProtocols));

View file

@ -1,9 +1,9 @@
To connect your account to the application, click on the following button:
<x-mail::button :url="route('provisioning.provision', ['provisioning_token' => $account->provisioning_token, 'reset_password' => true])" color="primary">
<x-mail::button :url="$account->provisioning_linphone_uri" color="primary">
Connect my account
</x-mail::button>
You can also configure your device by scanning the QR code with the mobile app, or by pasting the link below into the desktop application.
![QRCode]({{ route('provisioning.qrcode', ['provisioning_token' => $account->provisioning_token, 'reset_password' => true]) }})
![QRCode]({{ route('provisioning.qrcode', ['provisioning_token' => $account->provisioning_token]) }})