From d4ab8c2f7e03f57fb873e3f131389542ecc16102 Mon Sep 17 00:00:00 2001 From: fokosun Date: Mon, 21 Aug 2023 13:09:31 -0400 Subject: [PATCH] set up cron monitor to invalidate expired otps --- app/Console/Kernel.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index 9462c10f..bf1496d2 100755 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -26,7 +26,9 @@ class Kernel extends ConsoleKernel */ protected function schedule(Schedule $schedule) { - // $schedule->command('inspire')->hourly(); + $schedule->command('otp:clean') + ->daily() + ->sentryMonitor('invalidate-otps'); } /**