Commit 7f6f70bc by GD-A-150752

platform-removed

parent 6752cdc3
...@@ -70,7 +70,7 @@ Migrations.add({ ...@@ -70,7 +70,7 @@ Migrations.add({
settingsCollection.insert({ settingsCollection.insert({
Key: 'REGISTER', Key: 'REGISTER',
Value: { Value: {
SUBJECT: 'Welcome to $platform', SUBJECT: 'Welcome to My Platform',
CONTENT: 'Hi $name! You are our $role now. Please click on the link <a href="$link" target="_blank">$link</a> to verify your account.', CONTENT: 'Hi $name! You are our $role now. Please click on the link <a href="$link" target="_blank">$link</a> to verify your account.',
}, },
Description: 'Register Email Template', Description: 'Register Email Template',
...@@ -82,7 +82,7 @@ Migrations.add({ ...@@ -82,7 +82,7 @@ Migrations.add({
settingsCollection.insert({ settingsCollection.insert({
Key: 'RESET', Key: 'RESET',
Value: { Value: {
SUBJECT: 'Reset Password for $platform', SUBJECT: 'Reset Password for My Platform',
CONTENT: 'Hi $name! Don\'t worry. Reset your password by clicking on the following link <a href="$link" target="_blank">$link</a>.', CONTENT: 'Hi $name! Don\'t worry. Reset your password by clicking on the following link <a href="$link" target="_blank">$link</a>.',
}, },
Description: 'Reset Password Email Template', Description: 'Reset Password Email Template',
......
...@@ -70,7 +70,6 @@ export class EmailService { ...@@ -70,7 +70,6 @@ export class EmailService {
static formattedContent(content: string, name: string, role: string, email, link = null): string { static formattedContent(content: string, name: string, role: string, email, link = null): string {
const str = content.replace(/\$name/g, name) const str = content.replace(/\$name/g, name)
.replace(/\$role/g, role) .replace(/\$role/g, role)
.replace(/\$platform/g, CONFIG.SiteName)
.replace(/\$email/g, email); .replace(/\$email/g, email);
return link ? str.replace(/\$link/g, link) : str; return link ? str.replace(/\$link/g, link) : str;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment