Update the dependencies

Allow email account registration text to be customized
Rename lindoor CSS to linhome CSS
This commit is contained in:
Timothée Jaussoin 2020-09-28 11:34:59 +02:00
parent 9326245cfb
commit 7ca7aefad2
8 changed files with 338 additions and 249 deletions

View file

@ -7,11 +7,12 @@ APP_SIP_DOMAIN=sip.example.com
APP_FLEXISIP_PROXY_PID=/var/run/flexisip-proxy.pid
ACCOUNT_PROXY_REGISTRAR_ADDRESS=sip.example.com
ACCOUNT_TRANSPORT_PROTOCOL="TLS (recommended), TCP or UDP"
ACCOUNT_TRANSPORT_PROTOCOL_TEXT="TLS (recommended), TCP or UDP"
INSTANCE_COPYRIGHT=
INSTANCE_INTRO_REGISTRATION=
INSTANCE_CUSTOM_THEME=false
INSTANCE_CONFIRMED_REGISTRATION_TEXT=
LOG_CHANNEL=stack

549
flexiapi/composer.lock generated

File diff suppressed because it is too large Load diff

View file

@ -22,7 +22,7 @@ return [
'devices_management' => env('DEVICES_MANAGEMENT', true),
'proxy_registrar_address' => env('ACCOUNT_PROXY_REGISTRAR_ADDRESS', 'sip.domain.com'),
'transport_protocol' => env('ACCOUNT_TRANSPORT_PROTOCOL', 'TLS (recommended), TCP or UDP'),
'transport_protocol_text' => env('ACCOUNT_TRANSPORT_PROTOCOL_TEXT', 'TLS (recommended), TCP or UDP'),
/*
|--------------------------------------------------------------------------

View file

@ -2,6 +2,7 @@
return [
'copyright' => env('INSTANCE_COPYRIGHT', null),
'intro_registration' => env('INSTANCE_INTRO_REGISTRATION', null),
'intro_registration' => env('INSTANCE_INTRO_REGISTRATION', null), // Can be Markdown formatted
'confirmed_registration_text' => env('INSTANCE_CONFIRMED_REGISTRATION_TEXT', null), // Can be Markdown formatted
'custom_theme' => env('INSTANCE_CUSTOM_THEME', false),
];

View file

@ -67,8 +67,8 @@
@if (!empty(config('app.proxy_registrar_address')))
<b>Proxy/registrar address: </b> sip:{{ config('app.proxy_registrar_address') }}<br />
@endif
@if (!empty(config('app.transport_protocol')))
<b>Transport: </b> {{ config('app.transport_protocol') }} <br />
@if (!empty(config('app.transport_protocol_text')))
<b>Transport: </b> {{ config('app.transport_protocol_text') }} <br />
@endif
</div>

View file

@ -5,9 +5,13 @@
<body>
<p>Hello,</p>
<p>
Your SIP account has been successfully created.<br />
You can now configure this account on any SIP-compatible application using the following parameters:<br />
<br />
@if (config('instance.confirmed_registration_text'))
@parsedown(config('instance.confirmed_registration_text'))
@else
Your SIP account has been successfully created.<br />
You can now configure this account on any SIP-compatible application using the following parameters:<br />
<br />
@endif
<b>SIP address:</b> sip:{{ $account->identifier }}<br />
<b>Username:</b> {{ $account->username }}<br />
@ -16,8 +20,8 @@
@if (!empty(config('app.proxy_registrar_address')))
<b>Proxy/registrar address: </b> sip:{{ config('app.proxy_registrar_address') }}<br />
@endif
@if (!empty(config('app.transport_protocol')))
<b>Transport: </b> {{ config('app.transport_protocol') }} <br />
@if (!empty(config('app.transport_protocol_text')))
<b>Transport: </b> {{ config('app.transport_protocol_text') }} <br />
@endif
</p>
<p>

View file

@ -2,8 +2,12 @@ Registration confirmed {{ config('app.name') }}
Hello,
@if (config('instance.confirmed_registration_text'))
{{ strip_tags(parsedown(config('instance.confirmed_registration_text'))) }}
@else
Your SIP account has been successfully created.
You can now configure this account on any SIP-compatible application using the following parameters:
@endif
SIP address: sip:{{ $account->identifier }}
Username: {{ $account->username }}
@ -12,9 +16,11 @@ You can now configure this account on any SIP-compatible application using the f
@if (!empty(config('app.proxy_registrar_address')))
Proxy/registrar address: sip:{{ config('app.proxy_registrar_address') }}
@endif
@if (!empty(config('app.transport_protocol')))
Transport: {{ config('app.transport_protocol') }}
@if (!empty(config('app.transport_protocol_text')))
Transport: {{ config('app.transport_protocol_text') }}
@endif
Regards,
{{ config('mail.signature') }}
{{ config('mail.signature') }}
strip_tags