From 9df839a83c1298cd679afc1cf457e6811fd2ff3e Mon Sep 17 00:00:00 2001 From: Alex Justesen Date: Mon, 4 Sep 2023 11:01:49 -0400 Subject: [PATCH 1/3] added command to reset a user's password --- app/Console/Commands/ResetUserPassword.php | 48 ++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 app/Console/Commands/ResetUserPassword.php diff --git a/app/Console/Commands/ResetUserPassword.php b/app/Console/Commands/ResetUserPassword.php new file mode 100644 index 000000000..6c27e9e98 --- /dev/null +++ b/app/Console/Commands/ResetUserPassword.php @@ -0,0 +1,48 @@ +argument('email')); + + if (! $user) { + // couldn't find the user so should fail. + $this->error('Could not find a user with the email address of '.$$this->argument('email')); + + Command::FAILURE; + } + + $password = $this->secret('What is the password?'); + + $user->update([ + 'password' => Hash::make($password), + ]); + + Command::SUCCESS; + } +} From 156593f31dd12e020b098ae379953229445d8c6b Mon Sep 17 00:00:00 2001 From: Alex Justesen Date: Mon, 4 Sep 2023 11:01:55 -0400 Subject: [PATCH 2/3] redirect login route --- routes/web.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/routes/web.php b/routes/web.php index d5ec804da..de5c4849a 100644 --- a/routes/web.php +++ b/routes/web.php @@ -15,6 +15,8 @@ Route::redirect('/', '/admin'); +Route::redirect('/login', '/admin/login'); + if (app()->isLocal()) { require __DIR__.'/test.php'; } From 9df078e2770e3024d36a2d39c452473b6ad40717 Mon Sep 17 00:00:00 2001 From: Alex Justesen Date: Mon, 4 Sep 2023 11:06:23 -0400 Subject: [PATCH 3/3] fixed ordered_interfaces pint test --- app/Jobs/DeleteResultsData.php | 2 +- app/Jobs/ExecSpeedtest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Jobs/DeleteResultsData.php b/app/Jobs/DeleteResultsData.php index 462909c34..105cef283 100644 --- a/app/Jobs/DeleteResultsData.php +++ b/app/Jobs/DeleteResultsData.php @@ -13,7 +13,7 @@ use Illuminate\Queue\SerializesModels; use Illuminate\Support\Facades\DB; -class DeleteResultsData implements ShouldQueue, ShouldBeUnique +class DeleteResultsData implements ShouldBeUnique, ShouldQueue { use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; diff --git a/app/Jobs/ExecSpeedtest.php b/app/Jobs/ExecSpeedtest.php index 4b2dea12f..77cf34830 100644 --- a/app/Jobs/ExecSpeedtest.php +++ b/app/Jobs/ExecSpeedtest.php @@ -13,7 +13,7 @@ use Symfony\Component\Process\Exception\ProcessFailedException; use Symfony\Component\Process\Process; -class ExecSpeedtest implements ShouldQueue, ShouldBeUnique +class ExecSpeedtest implements ShouldBeUnique, ShouldQueue { use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;