mirror of
https://github.com/flarum/framework.git
synced 2024-12-13 23:53:42 +08:00
Fix error on account registration
This commit is contained in:
parent
c70122c449
commit
1b57eb3c9b
|
@ -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');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user