Skip to content
RED SAGSkills
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