Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
api
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
angular-meteor
api
Commits
7f6f70bc
Commit
7f6f70bc
authored
Dec 24, 2019
by
GD-A-150752
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
platform-removed
parent
6752cdc3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
migrations.ts
server/migrations.ts
+2
-2
email.service.ts
server/services/email.service.ts
+0
-1
No files found.
server/migrations.ts
View file @
7f6f70bc
...
@@ -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
$p
latform'
,
SUBJECT
:
'Welcome to
My P
latform'
,
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
$p
latform'
,
SUBJECT
:
'Reset Password for
My P
latform'
,
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'
,
...
...
server/services/email.service.ts
View file @
7f6f70bc
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment