Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Add Obscura to Ente Friends

Anand Baburajan978ea4444d1d
diff --git a/server/mail-templates/discount_coupon_obscura.html b/server/mail-templates/discount_coupon_obscura.html
new file mode 100644
index 0000000000..220ef3edb5
--- /dev/null
+++ b/server/mail-templates/discount_coupon_obscura.html
@@ -0,0 +1,22 @@
+{{template "base" .}} {{define "content"}}
+<h2>Ente Friends - Obscura discount code</h2>
+
+<p>Hello,</p>
+
+<p>
+ Get 25% off up to a year of Obscura VPN with code
+ <strong>{{.CouponCode}}</strong>.
+</p>
+
+<p>
+ Sign up or log in, then apply your code to a subscription or top up on your
+ <a href="https://obscura.com/account/subscription">subscription page</a>,
+ or during checkout in the Android or iOS app.
+</p>
+
+<p>
+ Best,<br />
+ Team Ente
+</p>
+
+{{end}}
diff --git a/server/pkg/controller/discountcoupon/controller.go b/server/pkg/controller/discountcoupon/controller.go
index 08d2cca063..e8271d0124 100644
--- a/server/pkg/controller/discountcoupon/controller.go
+++ b/server/pkg/controller/discountcoupon/controller.go
@@ -26,6 +26,7 @@ var AllowedProviders = map[string]bool{
"Notesnook": true,
"Windscribe": true,
"LeaveMeAlone": true,
+ "Obscura": true,
"Test": true,
}
@@ -159,6 +160,9 @@ func (c *Controller) sendCouponEmail(ctx context.Context, user ente.User, coupon
case "LeaveMeAlone":
subject = "Ente Friends - Leave Me Alone voucher code"
templateName = "discount_coupon_leave_me_alone.html"
+ case "Obscura":
+ subject = "Ente Friends - Obscura discount code"
+ templateName = "discount_coupon_obscura.html"
case "Test":
subject = "Ente Friends - Test trial code"
templateName = "discount_coupon_test.html"