π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Add addy.io to Ente Friends
Anand Baburajan0bb01095b7ad
diff --git a/server/mail-templates/discount_coupon_addy.html b/server/mail-templates/discount_coupon_addy.htmlnew file mode 100644index 0000000000..2ce0582f04--- /dev/null+++ b/server/mail-templates/discount_coupon_addy.html@@ -0,0 +1,16 @@+{{template "base" .}} {{define "content"}}+<h2>Ente Friends - addy.io discount code</h2>++<p>Hello,</p>++<p>+ Get 25% off your first year on any yearly plan (Lite, Pro, Duo or Family) with+ code <strong>{{.CouponCode}}</strong>.+</p>++<p>+ Best,<br />+ Team Ente+</p>++{{end}}diff --git a/server/pkg/controller/discountcoupon/controller.go b/server/pkg/controller/discountcoupon/controller.goindex e8271d0124..8608994715 100644--- a/server/pkg/controller/discountcoupon/controller.go+++ b/server/pkg/controller/discountcoupon/controller.go@@ -27,6 +27,7 @@ var AllowedProviders = map[string]bool{"Windscribe": true,"LeaveMeAlone": true,"Obscura": true,+ "Addy": true,"Test": true,}@@ -163,6 +164,9 @@ func (c *Controller) sendCouponEmail(ctx context.Context, user ente.User, couponcase "Obscura":subject = "Ente Friends - Obscura discount code"templateName = "discount_coupon_obscura.html"+ case "Addy":+ subject = "Ente Friends - addy.io discount code"+ templateName = "discount_coupon_addy.html"case "Test":subject = "Ente Friends - Test trial code"templateName = "discount_coupon_test.html"