π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Add Leave Me Alone to Ente Friends
Anand Baburajana6010f7cc6f3
diff --git a/server/mail-templates/discount_coupon_leave_me_alone.html b/server/mail-templates/discount_coupon_leave_me_alone.htmlnew file mode 100644index 0000000000..79c642f0dd--- /dev/null+++ b/server/mail-templates/discount_coupon_leave_me_alone.html@@ -0,0 +1,19 @@+{{template "base" .}} {{define "content"}}+<h2>Ente Friends - Leave Me Alone discount code</h2>++<p>Hello,</p>++<p>Use coupon code <strong>{{.CouponCode}}</strong> to get:</p>++<ul>+ <li>10% off Leave Me Alone's 7 day pass</li>+ <li>45% off Leave Me Alone's Yearly Casual Plan</li>+ <li>65% off Leave Me Alone's Yearly InboxZero Hero plan</li>+</ul>++<p>+ Best,<br />+ Team Ente+</p>++{{end}}diff --git a/server/pkg/controller/discountcoupon/controller.go b/server/pkg/controller/discountcoupon/controller.goindex 231bd6eb7d..a3e55ee13b 100644--- a/server/pkg/controller/discountcoupon/controller.go+++ b/server/pkg/controller/discountcoupon/controller.go@@ -22,11 +22,12 @@ const MaxSendCount = 10// AllowedProviders is a set of valid provider names for discount coupons.// While adding new providers, consider adding customized templates in email package.var AllowedProviders = map[string]bool{- "Kagi": true,- "Tuta": true,- "Notesnook": true,- "Windscribe": true,- "Test": true,+ "Kagi": true,+ "Tuta": true,+ "Notesnook": true,+ "Windscribe": true,+ "LeaveMeAlone": true,+ "Test": true,}type Controller struct {@@ -156,6 +157,9 @@ func (c *Controller) sendCouponEmail(ctx context.Context, user ente.User, couponcase "Windscribe":subject = "Ente Friends - Windscribe discount code"templateName = "discount_coupon_windscribe.html"+ case "LeaveMeAlone":+ subject = "Ente Friends - Leave Me Alone discount code"+ templateName = "discount_coupon_leave_me_alone.html"case "Test":subject = "Ente Friends - Test trial code"templateName = "discount_coupon_test.html"