mirror of
https://gitlab.linphone.org/BC/public/flexisip-account-manager.git
synced 2026-01-17 01:58:07 +00:00
Fix FLEXIAPI-195 Fix LiblinphoneTesterAccoutSeeder to fit with the latest Account related changes
This commit is contained in:
parent
6031ea80d3
commit
e913b4a584
3 changed files with 11 additions and 6 deletions
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
v1.5
|
||||
---
|
||||
- Fix FLEXIAPI-195 Fix LiblinphoneTesterAccoutSeeder to fit with the latest Account related changes
|
||||
- Fix FLEXIAPI-193 Typo
|
||||
- Fix FLEXIAPI-192 Clear and upgrade properly the account dictionary entries if the entries are already existing
|
||||
- Fix FLEXIAPI-191 Add quotes for the pn-prid parameter in FlexisipPusherConnector
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@ class LiblinphoneTesterAccoutSeeder extends Seeder
|
|||
$element->id,
|
||||
$element->username,
|
||||
$element->domain,
|
||||
$element->phone ?? null,
|
||||
$element->activated ?? true,
|
||||
$element->confirmation_key ?? null
|
||||
)
|
||||
|
|
@ -64,6 +65,7 @@ class LiblinphoneTesterAccoutSeeder extends Seeder
|
|||
str_replace('%id%', $element->idStart + $i, $element->id),
|
||||
str_replace('%usernamePostfix%', $element->usernameStart + $i, $element->username),
|
||||
$element->domain,
|
||||
$element->phone ?? null,
|
||||
$element->activated ?? true,
|
||||
$element->confirmation_key ?? null
|
||||
)
|
||||
|
|
@ -88,14 +90,14 @@ class LiblinphoneTesterAccoutSeeder extends Seeder
|
|||
}
|
||||
|
||||
private function generateAccountArray(
|
||||
int $id, string $username,
|
||||
string $domain, bool $activated = true,
|
||||
string $confirmationKey = null
|
||||
int $id, string $username, string $domain, string $phone = null,
|
||||
bool $activated = true, string $confirmationKey = null
|
||||
): array {
|
||||
return [
|
||||
'id' => $id,
|
||||
'username' => $username,
|
||||
'domain' => $domain,
|
||||
'phone' => $phone,
|
||||
'email' => rawurlencode($username) . '@' . $domain,
|
||||
'activated' => $activated,
|
||||
'ip_address' => '',
|
||||
|
|
|
|||
|
|
@ -21,9 +21,11 @@
|
|||
</a>
|
||||
<input form="create_edit" class="btn" type="submit" value="Update">
|
||||
</header>
|
||||
<p title="{{ $account->updated_at }}">Updated on {{ $account->updated_at->format('d/m/Y') }}
|
||||
@include('admin.account.parts.tabs')
|
||||
@else
|
||||
@if ($account->updated_at)
|
||||
<p title="{{ $account->updated_at }}">Updated on {{ $account->updated_at->format('d/m/Y') }}
|
||||
@endif
|
||||
@include('admin.account.parts.tabs')
|
||||
@else
|
||||
<header>
|
||||
<h1><i class="material-symbols-outlined">people</i> Create an account</h1>
|
||||
<a href="{{ route('admin.account.index') }}" class="btn btn-secondary oppose">Cancel</a>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue