mirror of
https://gitlab.linphone.org/BC/public/flexisip-account-manager.git
synced 2026-01-17 01:58:07 +00:00
Fix/311 316 317 320
This commit is contained in:
parent
cc45376d7d
commit
f1c0247960
7 changed files with 18 additions and 12 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
FlexiAPI relies on [DotEnv](https://github.com/vlucas/phpdotenv) to be configured. This configuration can be accessed using the existing `.env` file that can be itself overwritten by an environnement variables.
|
||||
|
||||
Thoses variables can then be set using Docker-Compose, a bash script or a web-server.
|
||||
Those variables can then be set using Docker-Compose, a bash script or a web-server.
|
||||
|
||||
If you're installing FlexiAPI from the RedHat or Debian package you can find the configuration file at `/etc/flexisip-account-manager/flexiapi.env`.
|
||||
|
||||
|
|
@ -33,7 +33,7 @@ To know more about the web server configuration part, you can directly [visit th
|
|||
|
||||
# 3. .env file configuration
|
||||
|
||||
Complete all the variables in the `.env` file (from the `.env.example` one if you setup the instance manually) or by overwritting them in your Docker or web-server configuration.
|
||||
Complete all the variables in the `.env` file (from the `.env.example` one if you setup the instance manually) or by overwriting them in your Docker or web-server configuration.
|
||||
|
||||
## 3.1. Mandatory `APP_ROOT_HOST` variable
|
||||
|
||||
|
|
@ -74,7 +74,7 @@ For example:
|
|||
|
||||
## 5. Create a first administrator and finish the setup
|
||||
|
||||
Create a first administator account:
|
||||
Create a first administrator account:
|
||||
|
||||
php artisan accounts:create-admin-account {-u|username=} {-p|password=} {-d|domain=}
|
||||
|
||||
|
|
|
|||
|
|
@ -95,19 +95,19 @@ Once one account is declared as administrator, you can directly configure the ot
|
|||
|
||||
### Seed liblinphone test accounts
|
||||
|
||||
You can also seed the tables with test accounts for the liblinphone test suite with the following command (check LiblinphoneTesterAccoutSeeder for the JSON syntax):
|
||||
You can also seed the tables with test accounts for the liblinphone test suite with the following command (check LiblinphoneTesterAccountSeeder for the JSON syntax):
|
||||
|
||||
php artisan accounts:seed /path/to/accounts.json
|
||||
|
||||
## SMS templates
|
||||
|
||||
To send SMS to the USA some providers need to validate their templates before transfering them, see [Sending SMS messages to the USA - OVH](https://help.ovhcloud.com/csm/en-ie-sms-sending-sms-to-usa?id=kb_article_view&sysparm_article=KB0051359).
|
||||
To send SMS to the USA some providers need to validate their templates before transferring them, see [Sending SMS messages to the USA - OVH](https://help.ovhcloud.com/csm/en-ie-sms-sending-sms-to-usa?id=kb_article_view&sysparm_article=KB0051359).
|
||||
|
||||
Here are the currently used SMS templates in the app to declare in your provider panel:
|
||||
- Validation code: `Your #APP_NAME# validation code is #CODE#`. Sent to validate the phone change by SMS.
|
||||
- Validation code with expiration: `Your #APP_NAME# validation code is #CODE#. The code is available for #CODE_MINUTES# minutes`. Sent to validate the phone change by SMS, include an expiration time.
|
||||
|
||||
## Custom email templaces
|
||||
## Custom email templates
|
||||
|
||||
Some email templates can be customized.
|
||||
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ class StatisticsGraphFactory
|
|||
$fromQuery = StatisticsMessage::query();
|
||||
$toQuery = StatisticsMessage::query();
|
||||
|
||||
if (!Auth::user()?->isAdmin) {
|
||||
if (!Auth::user()?->admin) {
|
||||
$fromQuery->where('from_domain', space()->domain);
|
||||
$toQuery->toDomain($this->domain);
|
||||
} elseif ($this->domain) {
|
||||
|
|
@ -126,7 +126,7 @@ class StatisticsGraphFactory
|
|||
// Accounts doesn't have a from and to
|
||||
$this->domain = $this->domain ?? $this->fromDomain;
|
||||
|
||||
if (!Auth::user()?->isAdmin) {
|
||||
if (!Auth::user()?->admin) {
|
||||
$this->data->where('domain', space()->domain);
|
||||
} elseif ($this->domain) {
|
||||
$this->data->where('domain', $this->domain);
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
|
||||
<div class="large" style="margin-top: 2rem;">
|
||||
<p>
|
||||
|
||||
{{ __('You didn't receive the code?') }}
|
||||
{{ __("You didn't receive the code?") }}
|
||||
<a class="btn secondary" href="{{ route('account.email.change') }}">{{ __('Resend') }}</a>
|
||||
</p>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@
|
|||
|
||||
<div class="large" style="margin-top: 2rem;">
|
||||
<p>
|
||||
{{ __("You didn't receive the code?"") }}
|
||||
{{ __("You didn't receive the code?") }}
|
||||
<a class="btn secondary" href="{{ route('account.phone.change') }}">{{ __('Resend') }}</a>
|
||||
</p>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@
|
|||
</h3>
|
||||
@if ($account->external)
|
||||
@if ($account->external->username)
|
||||
<p><i class="ph">user</i> {{ __('Usernale') }}: {{ $account->external->username }}</p>
|
||||
<p><i class="ph">user</i> {{ __('Username') }}: {{ $account->external->username }}</p>
|
||||
@endif
|
||||
@if ($account->external->domain)
|
||||
<p><i class="ph">hard-drive</i> {{ __('Domain') }}: {{ $account->external->domain }}</p>
|
||||
|
|
|
|||
|
|
@ -67,6 +67,13 @@
|
|||
@include('parts.errors', ['name' => 'account_proxy_registrar_address'])
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<input name="account_realm" id="account_realm" placeholder="server.tld" value="{{ $space->account_realm }}">
|
||||
<label for="account_realm">Account realm</label>
|
||||
<span class="supporting">A custom realm for the Space accounts</span>
|
||||
@include('parts.errors', ['name' => 'account_realm'])
|
||||
</div>
|
||||
|
||||
<h3 class="large">{{ __('Remote provisioning') }}</h3>
|
||||
|
||||
<div class="large">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue