mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-11-25 01:34:15 +01:00
Add --force option to 2fauth:reset-testing command
This commit is contained in:
parent
235c53c4dd
commit
59db486c3c
@ -14,7 +14,7 @@ class ResetTesting extends Command
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $signature = '2fauth:reset-testing {--no-confirm}';
|
||||
protected $signature = '2fauth:reset-testing {--no-confirm} {--force}';
|
||||
|
||||
/**
|
||||
* The console command description.
|
||||
@ -47,7 +47,9 @@ public function __construct()
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
if (! config('2fauth.config.isTestingApp')) {
|
||||
$this->callSilently('config:clear');
|
||||
|
||||
if (! config('2fauth.config.isTestingApp') && ! $this->option('force')) {
|
||||
$this->comment('2fauth:reset-testing can only run when isTestingApp option is On');
|
||||
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user