From cd0f291eb1a608589fcc2c1875fa7099ed8e2c51 Mon Sep 17 00:00:00 2001 From: Raphael Kabo Date: Sun, 25 Feb 2024 17:56:25 +0000 Subject: feat: optionally restrict event creation to specific emails --- .../createEventMagicLink/createEventMagicLinkHtml.handlebars | 8 ++++++++ .../createEventMagicLink/createEventMagicLinkText.handlebars | 11 +++++++++++ 2 files changed, 19 insertions(+) create mode 100644 views/emails/createEventMagicLink/createEventMagicLinkHtml.handlebars create mode 100644 views/emails/createEventMagicLink/createEventMagicLinkText.handlebars (limited to 'views/emails/createEventMagicLink') 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 @@ +

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}}

+
+

Hold up - I have no idea what this email is about!

+

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.

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. -- cgit v1.2.3