From 2a9478f89ac0c4a93c876f18636ae60a80910440 Mon Sep 17 00:00:00 2001 From: Dillon Ngo Date: Tue, 8 Oct 2024 00:22:39 +0800 Subject: [PATCH] Laravel Vapor - Emergency fix cannot reset password --- .../Accounts/ControllersLogic/GeneratePasswordResetLogic.php | 4 ++-- .../Processors/GenerateEmailVerificationAttemptProcessor.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Classes/Modules/Accounts/ControllersLogic/GeneratePasswordResetLogic.php b/app/Classes/Modules/Accounts/ControllersLogic/GeneratePasswordResetLogic.php index d96407a4..f3255138 100644 --- a/app/Classes/Modules/Accounts/ControllersLogic/GeneratePasswordResetLogic.php +++ b/app/Classes/Modules/Accounts/ControllersLogic/GeneratePasswordResetLogic.php @@ -77,11 +77,11 @@ class GeneratePasswordResetLogic extends AbstractControllerLogic $attempt = $this->generatesPasswordReset->execute($user); - $this->passwordResetTokenExpiration::dispatch($attempt)->delay(now()->addHours(24)); + // $this->passwordResetTokenExpiration::dispatch($attempt)->delay(now()->addHours(24)); // cief todo: to convert to schedule task $this->sendResetPasswordEmail::dispatch($user, $attempt); return $this->response(['email' => $object->getEmail()]); } } -} \ No newline at end of file +} diff --git a/app/Classes/Modules/Accounts/Processors/GenerateEmailVerificationAttemptProcessor.php b/app/Classes/Modules/Accounts/Processors/GenerateEmailVerificationAttemptProcessor.php index 4056234c..bd15c786 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)); + //$this->emailVerificationAttemptExpiration::dispatch($attempt)->delay(now()->addHours(48)); // cief todo: to convert to schedule task $this->sendUserVerificationEmail::dispatch($user, $attempt);