Vulcan/packages/vulcan-accounts/imports/emailTemplates.js
2018-12-25 09:34:25 +01:00

12 lines
445 B
JavaScript

import {Accounts} from 'meteor/accounts-base';
import {getSetting} from 'meteor/vulcan:core';
// the emailTemplates are made available by accounts-password, which we don't want to depend on
if (Package['accounts-password']) {
Accounts.emailTemplates.siteName = getSetting('public.title', '');
Accounts.emailTemplates.from =
getSetting('public.title', '') +
' <' +
getSetting('defaultEmail', 'no-reply@example.com') +
'>';
}