mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00
Fix invitation email subject
This commit is contained in:
parent
a762f6dc9d
commit
e124ad8ed9
2 changed files with 10 additions and 6 deletions
|
@ -53,9 +53,13 @@ if (Meteor.isServer) {
|
|||
}
|
||||
|
||||
['resetPassword-subject', 'resetPassword-text', 'verifyEmail-subject', 'verifyEmail-text', 'enrollAccount-subject', 'enrollAccount-text'].forEach((str) => {
|
||||
const words = str.split('-');
|
||||
Accounts.emailTemplates[words[0]][words[1]] = (user, url) => {
|
||||
return TAPi18n.__(`email-${str}`, { user: user.getName(), url }, user.getLanguage());
|
||||
const [templateName, field] = str.split('-');
|
||||
Accounts.emailTemplates[templateName][field] = (user, url) => {
|
||||
return TAPi18n.__(`email-${str}`, {
|
||||
url,
|
||||
user: user.getName(),
|
||||
siteName: Accounts.emailTemplates.siteName,
|
||||
}, user.getLanguage());
|
||||
};
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue