mirror of
https://github.com/aurora-dot/pastel.codes.git
synced 2024-11-22 08:12:19 +00:00
Fix while sendgrid is being weird
This commit is contained in:
parent
24af3d179c
commit
534fd6e249
@ -10,6 +10,7 @@ Environment=GHOST_KEY=key
|
|||||||
Environment=HCAPTCHA_KEY=key
|
Environment=HCAPTCHA_KEY=key
|
||||||
Environment=SENDGRID_API_KEY=key
|
Environment=SENDGRID_API_KEY=key
|
||||||
Environment=TO_MAIL_USER=user
|
Environment=TO_MAIL_USER=user
|
||||||
|
Environment=REPLY_TO_MAIL=user
|
||||||
Environment=FROM_MAIL_USER=user
|
Environment=FROM_MAIL_USER=user
|
||||||
StandardOutput=syslog
|
StandardOutput=syslog
|
||||||
SyslogIdentifier=pastel-codes
|
SyslogIdentifier=pastel-codes
|
||||||
|
@ -25,6 +25,7 @@ router.post('/', contact_rate_limit, (req, res) => {
|
|||||||
const TO_MAIL_USER = process.env.TO_MAIL_USER
|
const TO_MAIL_USER = process.env.TO_MAIL_USER
|
||||||
const FROM_MAIL_USER = process.env.FROM_MAIL_USER
|
const FROM_MAIL_USER = process.env.FROM_MAIL_USER
|
||||||
const HCAPTCHA_KEY = process.env.HCAPTCHA_KEY
|
const HCAPTCHA_KEY = process.env.HCAPTCHA_KEY
|
||||||
|
const REPLY_TO_MAIL = process.env.REPLY_TO_MAIL
|
||||||
const token = req.body["g-recaptcha-response"];
|
const token = req.body["g-recaptcha-response"];
|
||||||
const ip = req.headers['x-forwarded-for'] || req.connection.remoteAddress;
|
const ip = req.headers['x-forwarded-for'] || req.connection.remoteAddress;
|
||||||
|
|
||||||
@ -44,7 +45,7 @@ router.post('/', contact_rate_limit, (req, res) => {
|
|||||||
res.render('contact', {
|
res.render('contact', {
|
||||||
message: "I will get back to you soon!",
|
message: "I will get back to you soon!",
|
||||||
success: "Make sure the email is from ",
|
success: "Make sure the email is from ",
|
||||||
email: TO_MAIL_USER
|
email: REPLY_TO_MAIL
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
|
Loading…
Reference in New Issue
Block a user