updated tokens and emails

This commit is contained in:
2024-05-06 20:13:31 +10:00
parent 39ea570f3a
commit 742da4bf17
35 changed files with 627 additions and 340 deletions

View File

@@ -8,13 +8,8 @@ use Illuminate\Support\Facades\Storage;
Artisan::command('cleanup', function() {
// Clean up expired tokens
DB::table('login_tokens')
->where('created_at', '<', now()->subMinutes(10))
->delete();
// Clean up expired change email requests
DB::table('email_updates')
->where('created_at', '<', now()->subMinutes(10))
DB::table('tokens')
->where('expires_at', '<', now())
->delete();
// Published scheduled posts