SQL Injection

Turn sound offSwitch to light mode
Flash quiz3 questions · +15 XP
Flash quizQuestion 1 of 3

The app builds … WHERE username = ' + name + ' AND password = ' + pw + '. A user types ' OR '1'='1 as the password. Why does the login succeed?