From 3a9e62394cdc64dce6a86667cc22c9123426576a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Jaussoin?= Date: Thu, 2 May 2024 13:08:16 +0200 Subject: [PATCH] Fix FLEXIAPI-170 Fix undefined variable apiKey in CreateAdminAccount --- CHANGELOG.md | 1 + flexiapi/app/Console/Commands/CreateAdminAccount.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b4ded9..c6f1cd1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ v1.5 ---- +- Fix FLEXIAPI-170 Fix undefined variable apiKey in CreateAdminAccount - Fix FLEXIAPI-168 Add POST /accounts/me/email to confirm the email change - Fix FLEXIAPI-167 Add the handling of a custom identifier for the JWT tokens on top of the email one - Fix FLEXIAPI-166 Reimplement the deprecated email validation URL diff --git a/flexiapi/app/Console/Commands/CreateAdminAccount.php b/flexiapi/app/Console/Commands/CreateAdminAccount.php index a1e12de..2c62cb8 100644 --- a/flexiapi/app/Console/Commands/CreateAdminAccount.php +++ b/flexiapi/app/Console/Commands/CreateAdminAccount.php @@ -86,7 +86,7 @@ class CreateAdminAccount extends Command $account->generateApiKey(); $account->updatePassword($password); - $this->info('Admin test account created: "' . $username . '@' . $domain . '" | Password: "' . $password . '" | API Key: "' . $apiKey->key . '"'); + $this->info('Admin test account created: "' . $username . '@' . $domain . '" | Password: "' . $password . '" | API Key: "' . $account->apiKey->key . '"'); return 0; }