Skip to content

Commit

Permalink
Sanitize apikey parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
TristanDamron committed Nov 28, 2024
1 parent 7574e18 commit 077b190
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ app.post("/registry", async (req, res) => {

app.get("/apikey", async (req, res) => {
const key = generateApiKey()
const emailVal = email(req.body)
const emailVal = sanitizeString(email(req.body))

if (emailVal === "") {
res.json({
Expand Down

0 comments on commit 077b190

Please # to comment.