diff --git a/src/app/Jobs/PasswordResetEmail.php b/src/app/Jobs/PasswordResetEmail.php index 87a597ae..f4ff3f50 100644 --- a/src/app/Jobs/PasswordResetEmail.php +++ b/src/app/Jobs/PasswordResetEmail.php @@ -1,62 +1,64 @@ code = $code; } /** * Determine the time at which the job should timeout. * * @return \DateTime */ public function retryUntil() { // FIXME: I think it does not make sense to continue trying after 1 hour return now()->addHours(1); } /** * Execute the job. * * @return void */ public function handle() { $email = $this->code->user->getSetting('external_email'); Mail::to($email)->send(new PasswordReset($this->code)); } } diff --git a/src/app/Jobs/ProcessDomainCreate.php b/src/app/Jobs/ProcessDomainCreate.php index 55fff3b7..ed276756 100644 --- a/src/app/Jobs/ProcessDomainCreate.php +++ b/src/app/Jobs/ProcessDomainCreate.php @@ -1,45 +1,48 @@ domain = $domain; } /** * Execute the job. * * @return void */ public function handle() { LDAP::createDomain($this->domain); } } diff --git a/src/app/Jobs/ProcessUserCreate.php b/src/app/Jobs/ProcessUserCreate.php index e9b4564a..8d40dc0c 100644 --- a/src/app/Jobs/ProcessUserCreate.php +++ b/src/app/Jobs/ProcessUserCreate.php @@ -1,45 +1,49 @@ user = $user; } /** * Execute the job. * * @return void */ public function handle() { LDAP::createUser($this->user); } } diff --git a/src/app/Jobs/ProcessUserDelete.php b/src/app/Jobs/ProcessUserDelete.php index 58d45b93..8720d43c 100644 --- a/src/app/Jobs/ProcessUserDelete.php +++ b/src/app/Jobs/ProcessUserDelete.php @@ -1,43 +1,46 @@ user = $user; } /** * Execute the job. * * @return void */ public function handle() { // } } diff --git a/src/app/Jobs/ProcessUserRead.php b/src/app/Jobs/ProcessUserRead.php index 125cc49d..feef61c5 100644 --- a/src/app/Jobs/ProcessUserRead.php +++ b/src/app/Jobs/ProcessUserRead.php @@ -1,43 +1,46 @@ user = $user; } /** * Execute the job. * * @return void */ public function handle() { // } } diff --git a/src/app/Jobs/ProcessUserUpdate.php b/src/app/Jobs/ProcessUserUpdate.php index 0aa30f4d..b0928450 100644 --- a/src/app/Jobs/ProcessUserUpdate.php +++ b/src/app/Jobs/ProcessUserUpdate.php @@ -1,44 +1,47 @@ user = $user; } /** * Execute the job. * * @return void */ public function handle() { LDAP::updateUser($this->user); } } diff --git a/src/app/Jobs/SignupVerificationEmail.php b/src/app/Jobs/SignupVerificationEmail.php index d9812eb0..dd578fce 100644 --- a/src/app/Jobs/SignupVerificationEmail.php +++ b/src/app/Jobs/SignupVerificationEmail.php @@ -1,60 +1,63 @@ code = $code; } /** * Determine the time at which the job should timeout. * * @return \DateTime */ public function retryUntil() { // FIXME: I think it does not make sense to continue trying after 1 hour return now()->addHours(1); } /** * Execute the job. * * @return void */ public function handle() { Mail::to($this->code->data['email'])->send(new SignupVerification($this->code)); } } diff --git a/src/app/Jobs/SignupVerificationSMS.php b/src/app/Jobs/SignupVerificationSMS.php index a4189faf..03586352 100644 --- a/src/app/Jobs/SignupVerificationSMS.php +++ b/src/app/Jobs/SignupVerificationSMS.php @@ -1,58 +1,61 @@ code = $code; } /** * Determine the time at which the job should timeout. * * @return \DateTime */ public function retryUntil() { // FIXME: I think it does not make sense to continue trying after 1 hour return now()->addHours(1); } /** * Execute the job. * * @return void */ public function handle() { // TODO } }