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 + "'"
Discussion 0
Join free to post in the discussion.
Related questions
- Where to keep a secret keyFull Stack Developer
- Storing user passwordsFull Stack Developer
- The .env file and GitFull Stack Developer
- Listing users with zero ordersFull Stack Developer
- Comparing a column to NULLFull Stack Developer
- What an index costsFull Stack Developer
- JWT in localStorageFull Stack Developer
- CSRF with cookie sessionsFull Stack Developer