Fix error on account registration

This commit is contained in:
Toby Zerner 2015-06-01 17:55:41 +09:30
parent c70122c449
commit 1b57eb3c9b

View File

@ -32,8 +32,8 @@ class EmailConfirmationMailer
$user = $event->user; $user = $event->user;
$data = $this->getPayload($user, $user->email); $data = $this->getPayload($user, $user->email);
$this->mailer->send(['text' => 'flarum::emails.activateAccount'], $data, function ($message) use ($email) { $this->mailer->send(['text' => 'flarum::emails.activateAccount'], $data, function ($message) use ($user) {
$message->to($email); $message->to($user->email);
$message->subject('Activate Your New Account'); $message->subject('Activate Your New Account');
}); });
} }