Skip to content
RED SAG Skills
easy5 pts · first answer countssecuritysql

Preventing SQL injection

A login handler builds a query by joining strings with the email from the request. What is the correct way to prevent SQL injection?

const sql = "SELECT * FROM users WHERE email = '" + req.body.email + "'"
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions