Skip to content

Commit

Permalink
chore(examples): Remove log of user input (#525)
Browse files Browse the repository at this point in the history
chore(example): Remove log of user input
  • Loading branch information
blaine-arcjet committed Apr 8, 2024
1 parent aa0c56a commit 24c97a0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions examples/nodejs-express-validate-email/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ const aj = arcjet({
});

app.post('/', async (req, res) => {
console.log("Email received: ", req.body.email)

const decision = await aj.protect(req, {
email: req.body.email,
});
Expand All @@ -33,8 +31,8 @@ app.post('/', async (req, res) => {
res.writeHead(200, { "Content-Type": "application/json" });
res.end(JSON.stringify({ message: "Hello World", email: req.body.email }));
}
})
});

app.listen(port, () => {
console.log(`Example app listening on port ${port}`)
})
});

0 comments on commit 24c97a0

Please sign in to comment.