more gmail setup
This commit is contained in:
2
.env
2
.env
@ -62,7 +62,7 @@ MAILERSEND_USER=MS_bL93ka@mwitnessing.com
|
|||||||
MAILERSEND_PASS=v23Z2XrDSNjHJxgo
|
MAILERSEND_PASS=v23Z2XrDSNjHJxgo
|
||||||
|
|
||||||
EMAIL_GMAIL_USERNAME=mwitnessing
|
EMAIL_GMAIL_USERNAME=mwitnessing
|
||||||
EMAIL_GMAIL_PASS=N5jkpvAYLMCmUu
|
EMAIL_GMAIL_APP_PASS="acys uzsp eere qzyh"
|
||||||
|
|
||||||
TELEGRAM_BOT=false
|
TELEGRAM_BOT=false
|
||||||
TELEGRAM_BOT_TOKEN=7050075088:AAH6VRpNCyQd9x9sW6CLm6q0q4ibUgYBfnM
|
TELEGRAM_BOT_TOKEN=7050075088:AAH6VRpNCyQd9x9sW6CLm6q0q4ibUgYBfnM
|
||||||
|
BIN
mwitnessing_totp_setup.png
Normal file
BIN
mwitnessing_totp_setup.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
@ -269,9 +269,10 @@ export default async function handler(req, res) {
|
|||||||
let pubsToSend = subscribedPublishers.concat(availablePublishers).
|
let pubsToSend = subscribedPublishers.concat(availablePublishers).
|
||||||
filter((item, index, self) =>
|
filter((item, index, self) =>
|
||||||
index === self.findIndex((t) => (
|
index === self.findIndex((t) => (
|
||||||
t.email === item.email
|
t.email === item.email //and exclude the user himself
|
||||||
))
|
)) //&& item.email !== user.email
|
||||||
);
|
);
|
||||||
|
console.log("Sending CoverMe request to " + pubsToSend.length + " publishers");
|
||||||
|
|
||||||
//send email to all subscribed publishers
|
//send email to all subscribed publishers
|
||||||
for (let i = 0; i < pubsToSend.length; i++) {
|
for (let i = 0; i < pubsToSend.length; i++) {
|
||||||
|
@ -57,7 +57,7 @@ var transporter = nodemailer.createTransport({
|
|||||||
service: "gmail",
|
service: "gmail",
|
||||||
auth: {
|
auth: {
|
||||||
user: process.env.EMAIL_GMAIL_USERNAME,
|
user: process.env.EMAIL_GMAIL_USERNAME,
|
||||||
pass: process.env.EMAIL_GMAIL_PASS
|
pass: process.env.EMAIL_GMAIL_APP_PASS
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user