@@ 16-26 (lines=11) @@ | ||
13 | * @param Cerbero\Auth\Jobs\RecoverJob $job |
|
14 | * @return mixed |
|
15 | */ |
|
16 | public function after(Mailer $mailer, $handled, $job) |
|
17 | { |
|
18 | $email = $job->email; |
|
19 | ||
20 | $method = config('_auth.recover.email.queue') ? 'queue' : 'send'; |
|
21 | ||
22 | $mailer->$method(config('_auth.recover.email.view'), ['token' => $handled], function($message) use($email) |
|
23 | { |
|
24 | $message->to($email)->subject(trans('auth::recover.email_subject')); |
|
25 | }); |
|
26 | } |
|
27 | ||
28 | } |
|
29 |
@@ 46-58 (lines=13) @@ | ||
43 | * @param Cerbero\Auth\Jobs\RegisterJob $job |
|
44 | * @return mixed |
|
45 | */ |
|
46 | public function after(Mailer $mailer, $handled, $job) |
|
47 | { |
|
48 | $email = $handled->email; |
|
49 | ||
50 | $payload = ['user' => $handled, 'password' => $this->password]; |
|
51 | ||
52 | $method = config('_auth.register.email.queue') ? 'queue' : 'send'; |
|
53 | ||
54 | $mailer->$method(config('_auth.register.email.view'), $payload, function($message) use($email) |
|
55 | { |
|
56 | $message->to($email)->subject(trans('auth::register.email_subject')); |
|
57 | }); |
|
58 | } |
|
59 | ||
60 | /** |
|
61 | * Determine whether the after method has to be processed. |