flexisip-account-manager/flexiapi/resources/views/parts/account_variables.blade.php
Timothée Jaussoin 48bc542097 Inject the account information as a Javascript variable
Check the registration and authentication status and inject this variable once the email is validated or the account authenticated
Bump the package number
Fix #8
2021-05-05 16:00:07 +02:00

12 lines
419 B
PHP

@if ($account)
<script type="text/javascript">
var account_infos = {
sip: '{{ $account->identifier }}',
username: '{{ $account->username }}',
@if (!empty(config('app.proxy_registrar_address')))
registrar_address: '{{ config('app.proxy_registrar_address') }}',
@endif
domain: '{{ $account->domain }}'
}
</script>
@endif