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]) }})