From fae800343f4497431e76d2c990b721d255ca143f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Jaussoin?= Date: Mon, 9 Jun 2025 09:59:59 +0000 Subject: [PATCH] Fix FLEXIAPI-319 Fix the admin device deletion link, recover the missing method --- flexiapi/app/Account.php | 5 +++++ flexiapi/resources/views/mails/parts/provisioning.blade.php | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/flexiapi/app/Account.php b/flexiapi/app/Account.php index 80e3d8b..062a934 100644 --- a/flexiapi/app/Account.php +++ b/flexiapi/app/Account.php @@ -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)); diff --git a/flexiapi/resources/views/mails/parts/provisioning.blade.php b/flexiapi/resources/views/mails/parts/provisioning.blade.php index 52fdbd4..0bf4d8e 100644 --- a/flexiapi/resources/views/mails/parts/provisioning.blade.php +++ b/flexiapi/resources/views/mails/parts/provisioning.blade.php @@ -1,9 +1,9 @@ To connect your account to the application, click on the following button: - + Connect my account 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]) }})