From a98c8764d5d6de0558ce94a2df11b841bdfe5b32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Jaussoin?= Date: Mon, 29 Sep 2025 06:59:52 +0000 Subject: [PATCH] Fix FLEXIAPI-392 Fix the recover_by_code view and use the account space object --- CHANGELOG.md | 1 + flexiapi/resources/views/api/documentation_markdown.blade.php | 2 +- flexiapi/resources/views/mails/recover_by_code.blade.php | 2 +- .../views/mails/recover_by_code_custom.blade.php.example | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 609b4ce..753aed6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ v2.1 - Fix FLEXIAPI-384 Allow carddav_user_credentials to be set and use the correct host -> domain parameter in the endpoints - Fix FLEXIAPI-385 Use domains and not hosts in the EmailServer endpoints as defined in the API documentation - Fix FLEXIAPI-391 Add missing account view attribute in the actions.delete view +- Fix FLEXIAPI-392 Fix the recover_by_code view and use the account space object v2.0 ---- diff --git a/flexiapi/resources/views/api/documentation_markdown.blade.php b/flexiapi/resources/views/api/documentation_markdown.blade.php index d9ddb73..5b5f5a0 100644 --- a/flexiapi/resources/views/api/documentation_markdown.blade.php +++ b/flexiapi/resources/views/api/documentation_markdown.blade.php @@ -70,7 +70,7 @@ JSON parameters: The phone numbers managed by FlexiAPI are validated against a list of countries that can be managed in the admin web panels. -### `GET /phones_countries` +### `GET /phone_countries` Public Return the list of Phone Countries and their current status. diff --git a/flexiapi/resources/views/mails/recover_by_code.blade.php b/flexiapi/resources/views/mails/recover_by_code.blade.php index 49b0c74..4329ab3 100644 --- a/flexiapi/resources/views/mails/recover_by_code.blade.php +++ b/flexiapi/resources/views/mails/recover_by_code.blade.php @@ -3,7 +3,7 @@ @section('content') # {{ __('Account Recovery Request') }} -{{ __('We received a request to recover your account on :space', ['space' => $space->name]) }} +{{ __('We received a request to recover your account on :space', ['space' => $account->space->name]) }} {{ __('To proceed, please enter the verification code below:') }} diff --git a/flexiapi/resources/views/mails/recover_by_code_custom.blade.php.example b/flexiapi/resources/views/mails/recover_by_code_custom.blade.php.example index 49b0c74..4329ab3 100644 --- a/flexiapi/resources/views/mails/recover_by_code_custom.blade.php.example +++ b/flexiapi/resources/views/mails/recover_by_code_custom.blade.php.example @@ -3,7 +3,7 @@ @section('content') # {{ __('Account Recovery Request') }} -{{ __('We received a request to recover your account on :space', ['space' => $space->name]) }} +{{ __('We received a request to recover your account on :space', ['space' => $account->space->name]) }} {{ __('To proceed, please enter the verification code below:') }}