Fix email confirmation links

This commit is contained in:
Toby Zerner 2018-07-21 17:08:11 +09:30
parent 6b6e882770
commit 15901fbf5a
2 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ class SendConfirmationEmailController implements RequestHandlerInterface
$data = [
'{username}' => $actor->username,
'{url}' => $this->url->to('forum')->route('confirmEmail', ['token' => $token->id]),
'{url}' => $this->url->to('forum')->route('confirmEmail', ['token' => $token->token]),
'{forum}' => $this->settings->get('forum_title')
];

View File

@ -128,7 +128,7 @@ class EmailConfirmationMailer
return [
'{username}' => $user->display_name,
'{url}' => $this->url->to('forum')->route('confirmEmail', ['token' => $token->id]),
'{url}' => $this->url->to('forum')->route('confirmEmail', ['token' => $token->token]),
'{forum}' => $this->settings->get('forum_title')
];
}