diff --git a/app/Classes/Jobs/Commands/V2/NewUserRegistrationExpireCheckV2CommandJob.php b/app/Classes/Jobs/Commands/V2/NewUserRegistrationExpireCheckV2CommandJob.php index 196d8aa8..3170611a 100644 --- a/app/Classes/Jobs/Commands/V2/NewUserRegistrationExpireCheckV2CommandJob.php +++ b/app/Classes/Jobs/Commands/V2/NewUserRegistrationExpireCheckV2CommandJob.php @@ -28,7 +28,7 @@ class NewUserRegistrationExpireCheckV2CommandJob implements ShouldQueue foreach ($attempts as $attempt){ (new ExpiresEmailVerificationAttempt())->execute($attempt); - Log::info('NewUser Expired: '.$attempt->email.', '.$attempt->created_at); + Log::info('NewUser Expired: '.$attempt->id.', '.$attempt->created_at); } $end = new Carbon(); diff --git a/app/Classes/Modules/Accounts/ControllersLogic/GeneratePasswordResetLogic.php b/app/Classes/Modules/Accounts/ControllersLogic/GeneratePasswordResetLogic.php index f3255138..b397041b 100644 --- a/app/Classes/Modules/Accounts/ControllersLogic/GeneratePasswordResetLogic.php +++ b/app/Classes/Modules/Accounts/ControllersLogic/GeneratePasswordResetLogic.php @@ -77,7 +77,7 @@ class GeneratePasswordResetLogic extends AbstractControllerLogic $attempt = $this->generatesPasswordReset->execute($user); - // $this->passwordResetTokenExpiration::dispatch($attempt)->delay(now()->addHours(24)); // cief todo: to convert to schedule task + // $this->passwordResetTokenExpiration::dispatch($attempt)->delay(now()->addHours(24)); //converted to schedule task $this->sendResetPasswordEmail::dispatch($user, $attempt); return $this->response(['email' => $object->getEmail()]); diff --git a/app/Classes/Modules/Accounts/Processors/GenerateEmailVerificationAttemptProcessor.php b/app/Classes/Modules/Accounts/Processors/GenerateEmailVerificationAttemptProcessor.php index bd15c786..18531684 100644 --- a/app/Classes/Modules/Accounts/Processors/GenerateEmailVerificationAttemptProcessor.php +++ b/app/Classes/Modules/Accounts/Processors/GenerateEmailVerificationAttemptProcessor.php @@ -50,7 +50,7 @@ class GenerateEmailVerificationAttemptProcessor $attempt = $this->generatesEmailVerificationAttempt->execute($user); - //$this->emailVerificationAttemptExpiration::dispatch($attempt)->delay(now()->addHours(48)); // cief todo: to convert to schedule task + //$this->emailVerificationAttemptExpiration::dispatch($attempt)->delay(now()->addHours(48)); //converted to schedule task $this->sendUserVerificationEmail::dispatch($user, $attempt); diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index e955de62..a3b83314 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -39,11 +39,11 @@ class Kernel extends ConsoleKernel ->withoutOverlapping(); $schedule->command('password-reset-token-expriration-check-command') - ->everyFiveMinutes() + ->everySixHours() ->withoutOverlapping(); $schedule->command('new-user-registration-expire-check-command') - ->everyFiveMinutes() + ->everySixHours() ->withoutOverlapping(); if(env('APP_ENV') === 'production'){