From 6d1b0f86e7782086dbd5aa9f5673efe9c1451d71 Mon Sep 17 00:00:00 2001 From: Alex Lewin Date: Sat, 7 May 2022 14:49:03 -0400 Subject: [PATCH] removed apikeys from repo --- backend/mailgun/mailgun.js | 6 +++--- sample.env | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 sample.env diff --git a/backend/mailgun/mailgun.js b/backend/mailgun/mailgun.js index 594b5d4..ce984ce 100644 --- a/backend/mailgun/mailgun.js +++ b/backend/mailgun/mailgun.js @@ -1,13 +1,13 @@ const mailgun = require("mailgun-js"); const DOMAIN = "sandboxb488ae9cba904e73936d81f35b2ee781.mailgun.org"; const mg = mailgun({ - apiKey: "d05c4d067d69c940d3dac93769dd87a2-fe066263-f6136332", - domain: DOMAIN + apiKey: process.env.MAILGUN_API_KEY, + domain: DOMAIN, }); const sendInvite = async (newUser, email, familyName, inviteLink) => { const data = { - from: "Mailgun Sandbox ", + from: `Family BTC Wallet