From d8c4904c4bc1dfc396f60e7ba08848bb7461f22d Mon Sep 17 00:00:00 2001 From: Nabiel Omar Syarif Date: Tue, 7 Jan 2025 14:40:15 +0700 Subject: [PATCH] don't show jwt secret if show option is false even if the key is updated --- CHANGELOG.md | 1 + src/Console/JWTGenerateSecretCommand.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 06841fe0..4f00f8be 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ You can find and compare releases at the GitHub release page. ### Fixed - Fixes #259 - Can't logout with an expired token - Fixed #271 - Changing JWT_TTL in .env doesn't work +- Fixes #274 - Do not display jwt secret on console after successfully generated a new key ### Added - Add `cookie_key_name` config to customize cookie name for authentication diff --git a/src/Console/JWTGenerateSecretCommand.php b/src/Console/JWTGenerateSecretCommand.php index f456c7a2..c8cafd26 100644 --- a/src/Console/JWTGenerateSecretCommand.php +++ b/src/Console/JWTGenerateSecretCommand.php @@ -73,7 +73,7 @@ public function handle() if ($updated) { $this->updateEnvEntry('JWT_ALGO', 'HS256'); - $this->displayKey($key); + $this->info('jwt-auth secret set successfully.'); } }