Fix magic link buttons url scheme

This commit is contained in:
Alice Gaudon 2020-07-12 11:54:11 +02:00
parent 3561614f96
commit c2b35b473d

View File

@ -27,7 +27,7 @@ export default abstract class MagicLinkController extends Controller {
// Send email
await new Mail(mailTemplate, Object.assign(data, {
link: `${req.protocol}://${req.get('host') + Controller.route('magic_link')}?${querystring.stringify({
link: `${config.get<string>('base_url')}${Controller.route('magic_link')}?${querystring.stringify({
id: link.id,
token: token,
})}`,