Skip to content

Commit 573cee3

Browse files
🐛 Fix token appearing in deletion email (#1473)
* Fix and cleanup * Remove dot
1 parent a235423 commit 573cee3

File tree

2 files changed

+45
-20
lines changed

2 files changed

+45
-20
lines changed
Lines changed: 38 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,61 @@
11
@model SSW.Rewards.Application.Users.Commands.Common.DeleteProfileEmail;
22

33
<!DOCTYPE html>
4-
54
<html lang="en">
65
<head>
76
<title></title>
87
</head>
98
<body>
109
<div>
11-
<p style="color: #CC4141; font-weight: bold;">Hi @Model.UserName</p>
10+
<p style="color: #CC4141; font-weight: bold;">Hi SSW Rewards</p>
1211

1312
<blockquote>
1413
&gt; 1. Please delete their profile and all associated data from the following systems:
1514
<ul>
16-
<li>SSW.Rewards</li><li>SSW.Identity</li>
15+
<li>SSW.Rewards</li>
16+
<li>SSW.Identity</li>
1717
</ul>
18-
</blockquote>✅ Done - profile has been deleted
18+
</blockquote>
19+
<p><strong>✅ Done - profile has been deleted</strong></p>
1920

2021
<p><strong>Important: </strong>You can no longer accumulate points and are ineligible to claim rewards or win prizes.</p>
2122
<p>You can reply to this email if you have any concerns, and feel free to sign up again any time!</p>
2223
<p>Thanks,</p>
23-
<p>SSW Rewards Notification Service</p><hr/><strong>From:</strong> Verify [SSW] &lt;verify@ssw.com.au&gt;<br><strong>Date:</strong> @Model.RequestDate.ToString("f")<br><strong>To: </strong> SSW Rewards &lt;SSWRewards@ssw.com.au&gt;<br><strong>Cc: </strong> @Model.UserName &lt;@Model.UserEmail&gt;<br><strong>Subject:</strong> Profile deletion request<br><br>
24-
<p><span style="color: #CC4141; font-weight: bold;">Hi @Model.UserName,</span><br><strong>Important: </strong>if you did not request this, please reply to this email letting us know ASAP, and reset your password.</p>
25-
<p style="color: #CC4141; font-weight: bold;">Hi SSW Rewards</p>
26-
<p>{{username}} has submitted a profile deletion request.</p>
24+
<p>SSW Rewards Notification Service</p>
2725

28-
1. Please delete their profile and all associated data from the following systems:
29-
<ul>
30-
<li>SSW.Rewards</li><li>SSW.Identity</li>
31-
</ul>
26+
<hr style="margin: 20px 0; border: none; border-top: 1px solid #ccc;" />
3227

33-
<p>2. Reply all 'done'.</p>
34-
<p>Thanks,</p>
35-
<p>SSW Rewards Notification Service</p>
28+
<div style="background-color: #f5f5f5; padding: 10px; font-size: 12px; color: #666;">
29+
<p style="margin: 5px 0;">
30+
<strong>From:</strong> Verify [SSW] &lt;verify@ssw.com.au&gt;<br />
31+
<strong>Date:</strong> @Model.RequestDate.ToString("f")<br />
32+
<strong>To:</strong> SSW Rewards &lt;SSWRewards@ssw.com.au&gt;<br />
33+
<strong>Cc:</strong> @Model.UserName &lt;@Model.UserEmail&gt;<br />
34+
<strong>Subject:</strong> Profile deletion request
35+
</p>
36+
</div>
37+
38+
<div style="margin-top: 15px; border-left: 3px solid #ccc; padding-left: 10px;">
39+
<p style="color: #CC4141; font-weight: bold;">Hi @Model.UserName,</p>
40+
<p>
41+
<strong>Important: </strong>if you did not request this, please reply to this email letting us know ASAP, and reset your password.
42+
</p>
43+
44+
<p style="color: #CC4141; font-weight: bold;">Hi SSW Rewards</p>
45+
<p>@Model.UserName has submitted a profile deletion request.</p>
46+
47+
<p>
48+
1. Please delete their profile and all associated data from the following systems:
49+
</p>
50+
<ul>
51+
<li>SSW.Rewards</li>
52+
<li>SSW.Identity</li>
53+
</ul>
54+
55+
<p>2. Reply all 'done'.</p>
56+
<p>Thanks,</p>
57+
<p>SSW Rewards Notification Service</p>
58+
</div>
3659
</div>
3760
</body>
3861
</html>

src/Infrastructure/Services/EmailTemplates/ProfileDeletionRequest.cshtml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,26 @@
11
@model SSW.Rewards.Application.Users.Commands.Common.DeleteProfileEmail;
22

33
<!DOCTYPE html>
4-
54
<html lang="en">
65
<head>
76
<title></title>
87
</head>
98
<body>
109
<div>
10+
<p style="color: #CC4141; font-weight: bold;">Hi @Model.UserName,</p>
1111
<p>
12-
<span style="color: #CC4141; font-weight: bold;">Hi @Model.UserName,</span>
13-
<br>
1412
<strong>Important: </strong>if you did not request this, please reply to this email letting us know ASAP, and reset your password.
1513
</p>
14+
1615
<p style="color: #CC4141; font-weight: bold;">Hi SSW Rewards</p>
1716
<p>@Model.UserName has submitted a profile deletion request.</p>
1817

19-
1. Please delete their profile and all associated data from the following systems:
18+
<p>
19+
1. Please delete their profile and all associated data from the following systems:
20+
</p>
2021
<ul>
21-
<li>SSW.Rewards</li><li>SSW.Identity</li>
22+
<li>SSW.Rewards</li>
23+
<li>SSW.Identity</li>
2224
</ul>
2325

2426
<p>2. Reply all 'done'.</p>

0 commit comments

Comments
 (0)