Add honeypot to contact form

This commit is contained in:
Paul Nicoué 2023-01-30 12:34:53 +01:00
parent d3465c6ea3
commit 88bac001d8
2 changed files with 10 additions and 6 deletions

View file

@ -36,8 +36,9 @@ export default defineEventHandler(async (event) => {
console.log(response.body);
} catch (error) {
console.log(error.statusCode);
} finally {
// End response without providing data
event.node.res.end();
}
// End response without providing data
event.node.res.end();
});