1
0
mirror of https://github.com/flarum/core.git synced 2025-10-10 22:44:25 +02:00

Get signup working again

This commit is contained in:
Toby Zerner
2015-06-19 11:43:36 +09:30
parent d14716fa4d
commit d90a8142a1
2 changed files with 10 additions and 3 deletions

View File

@@ -61,9 +61,12 @@ class EmailConfirmationMailer
{
$token = $this->generateToken($user, $email);
// TODO: Need to use UrlGenerator, but since this is part of core we
// don't know that the forum routes will be loaded. Should the confirm
// email route be part of core??
return [
'username' => $user->username,
'url' => route('flarum.forum.confirmEmail', ['token' => $token->id]),
'url' => Core::config('base_url').'/confirm/'.$token->id,
'forumTitle' => Core::config('forum_title')
];
}