mirror of
https://github.com/strapi/strapi.git
synced 2025-12-25 06:04:29 +00:00
Add SERVER_URL variable to user e-mail templates
This commit is contained in:
parent
1cb4307bf8
commit
1028fefb7f
@ -240,6 +240,7 @@ module.exports = {
|
||||
|
||||
settings.message = await getService('users-permissions').template(settings.message, {
|
||||
URL: advanced.email_reset_password,
|
||||
SERVER_URL: getAbsoluteServerUrl(strapi.config),
|
||||
USER: userInfo,
|
||||
TOKEN: resetPasswordToken,
|
||||
});
|
||||
|
||||
@ -118,6 +118,7 @@ module.exports = ({ strapi }) => ({
|
||||
const apiPrefix = strapi.config.get('api.rest.prefix');
|
||||
settings.message = await userPermissionService.template(settings.message, {
|
||||
URL: urlJoin(getAbsoluteServerUrl(strapi.config), apiPrefix, '/auth/email-confirmation'),
|
||||
SERVER_URL: getAbsoluteServerUrl(strapi.config),
|
||||
USER: sanitizedUserInfo,
|
||||
CODE: confirmationToken,
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user