diff --git a/README.md b/README.md index 7580bd0..8563f69 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,7 @@ This should print the Kirby CLI version and a list of available commands ``` - kirby clean:content - kirby clear:cache +- kirby clear:logins - kirby clear:media - kirby clear:sessions - kirby download diff --git a/commands/clear/logins.php b/commands/clear/logins.php new file mode 100644 index 0000000..d408320 --- /dev/null +++ b/commands/clear/logins.php @@ -0,0 +1,15 @@ + 'Deletes the users `.logins` file', + 'command' => static function (CLI $cli): void { + F::remove($cli->kirby()->root('accounts') . '/.logins'); + + $cli->success('The `.logins` file has been deleted'); + } +];