mirror of
https://github.com/flarum/framework.git
synced 2024-11-23 21:59:24 +08:00
Fix error on account registration
This commit is contained in:
parent
c7a6f8650e
commit
82377f2302
|
@ -32,8 +32,8 @@ class EmailConfirmationMailer
|
|||
$user = $event->user;
|
||||
$data = $this->getPayload($user, $user->email);
|
||||
|
||||
$this->mailer->send(['text' => 'flarum::emails.activateAccount'], $data, function ($message) use ($email) {
|
||||
$message->to($email);
|
||||
$this->mailer->send(['text' => 'flarum::emails.activateAccount'], $data, function ($message) use ($user) {
|
||||
$message->to($user->email);
|
||||
$message->subject('Activate Your New Account');
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user