Added logging when honeypot field is hit

ref KTLO-1
This commit is contained in:
Sam Lord 2024-08-22 20:19:53 +01:00 committed by Sam Lord
parent 56a9fa34af
commit 9ca513bfdd

View File

@ -493,6 +493,8 @@ module.exports = class RouterController {
} }
if (honeypot) { if (honeypot) {
logging.warn('Honeypot field filled, this is likely a bot');
// Honeypot field is filled, this is a bot. // Honeypot field is filled, this is a bot.
// Pretend that the email was sent successfully. // Pretend that the email was sent successfully.
res.writeHead(201); res.writeHead(201);