-
Notifications
You must be signed in to change notification settings - Fork 306
Expand file tree
/
Copy pathinvalid-username.js
More file actions
30 lines (21 loc) · 860 Bytes
/
invalid-username.js
File metadata and controls
30 lines (21 loc) · 860 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
module.exports.render = render
function render (data) {
return {
subject: `Invalid username for account ${data.accountUri}`,
/**
* Text version
*/
text: `Hi,
We're sorry to inform you that the username for account ${data.accountUri} is not allowed after changes to username policy.
This account has been set to be deleted at ${data.dateOfRemoval}.
${data.supportEmail ? `Please contact ${data.supportEmail} if you want to move your account.` : ''}`,
/**
* HTML version
*/
html: `<p>Hi,</p>
<p>We're sorry to inform you that the username for account ${data.accountUri} is not allowed after changes to username policy.</p>
<p>This account has been set to be deleted at ${data.dateOfRemoval}.</p>
${data.supportEmail ? `<p>Please contact ${data.supportEmail} if you want to move your account.</p>` : ''}
`
}
}