Skip to content

Commit e293b58

Browse files
committed
don't show jwt secret if show option is false even if the key is updated
1 parent 7f5bb61 commit e293b58

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ You can find and compare releases at the GitHub release page.
1414

1515
### Added
1616
- Add `cookie_key_name` config to customize cookie name for authentication
17+
- Add option `no-show` for jwt generate secret key command
1718

1819
### Removed
1920

src/Console/JWTGenerateSecretCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ class JWTGenerateSecretCommand extends Command
2626
*/
2727
protected $signature = 'jwt:secret
2828
{--s|show : Display the key instead of modifying files.}
29+
{--no-show : Do not display the newly generated key to console.}
2930
{--always-no : Skip generating key if it already exists.}
3031
{--f|force : Skip confirmation when overwriting an existing key.}';
3132

@@ -73,7 +74,7 @@ public function handle()
7374

7475
if ($updated) {
7576
$this->updateEnvEntry('JWT_ALGO', 'HS256');
76-
$this->displayKey($key);
77+
$this->info('jwt-auth secret set successfully.');
7778
}
7879
}
7980

0 commit comments

Comments
 (0)