← Quiz: Security and JWT: all 10 questions
Quiz: Security and JWT · Question 8 of 10
Why does a failed login return 401 without saying whether the email exists?
Why does a failed login return 401 without saying whether the email exists?
- A.Saying "email not found" would help attackers find valid accounts
- B.The server does not know whether the email exists
- C.HTTP does not allow error messages
- D.401 responses cannot have a body
Answer & explanation
Correct answer: Saying "email not found" would help attackers find valid accounts
Give the same answer for a wrong email and a wrong password.
Can you get the rest right without peeking?
Take the timed Quiz: Security and JWT quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →