summaryrefslogtreecommitdiff
path: root/views/emails
diff options
context:
space:
mode:
authorRaphael <mail@raphaelkabo.com>2024-02-25 21:27:13 +0000
committerGitHub <noreply@github.com>2024-02-25 21:27:13 +0000
commit7ff0bebd9fbdf1c982d7cc42a7057d36a3e2486a (patch)
tree05b1d8b1d63baed174883cc96807051e530969a2 /views/emails
parentb17238eb2840553c69fc2dae168be557afbcee9c (diff)
parentcd0f291eb1a608589fcc2c1875fa7099ed8e2c51 (diff)
Merge pull request #133 from lowercasename/rk/restricted-event-creation
Optionally restrict event creation to specific email addresses
Diffstat (limited to 'views/emails')
-rw-r--r--views/emails/createEventMagicLink/createEventMagicLinkHtml.handlebars8
-rw-r--r--views/emails/createEventMagicLink/createEventMagicLinkText.handlebars11
2 files changed, 19 insertions, 0 deletions
diff --git a/views/emails/createEventMagicLink/createEventMagicLinkHtml.handlebars b/views/emails/createEventMagicLink/createEventMagicLinkHtml.handlebars
new file mode 100644
index 0000000..1379607
--- /dev/null
+++ b/views/emails/createEventMagicLink/createEventMagicLinkHtml.handlebars
@@ -0,0 +1,8 @@
+<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; Margin-bottom: 15px;">Here's a magic link which will allow you to create an event on {{siteName}}.</p>
+<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; Margin-bottom: 15px;">This link will expire in 24 hours and can be used multiple times before then. Don't share it publicly, because it will allow anyone to create an event on your behalf!</p>
+<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; Margin-bottom: 15px;"><a href="https://{{domain}}/new/{{token}}">https://{{domain}}/new/{{token}}</a></p>
+<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; Margin-bottom: 15px;">Love,</p>
+<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; Margin-bottom: 15px;">{{siteName}}</p>
+<hr/>
+<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; Margin-bottom: 15px;"><strong>Hold up - I have no idea what this email is about!</strong></p>
+<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; Margin-bottom: 15px;">If you didn't try to create an event on {{siteName}}, someone may have accidentally typed your email instead of theirs. Don't worry - there isn't anything you need to do. Your email address will be deleted after the magic link expires.</p>
diff --git a/views/emails/createEventMagicLink/createEventMagicLinkText.handlebars b/views/emails/createEventMagicLink/createEventMagicLinkText.handlebars
new file mode 100644
index 0000000..e3b4f96
--- /dev/null
+++ b/views/emails/createEventMagicLink/createEventMagicLinkText.handlebars
@@ -0,0 +1,11 @@
+Here's a magic link which will allow you to create an event on {{siteName}}.
+
+This link will expire in 24 hours and can be used multiple times before then. Don't share it publicly, because it will allow anyone to create an event on your behalf!
+
+https://{{domain}}/new/{{token}}
+
+Love,
+
+{{siteName}}
+
+If you didn't try to create an event on {{siteName}}, someone may have accidentally typed your email instead of theirs. Don't worry - there isn't anything you need to do. Your email address will be deleted after the magic link expires.