Fix magic link buttons url scheme
This commit is contained in:
parent
3561614f96
commit
c2b35b473d
@ -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,
|
||||
})}`,
|
||||
|
Loading…
Reference in New Issue
Block a user