🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Authentication, Sessions and JWT: all 10 questions

Quiz: Authentication, Sessions and JWT · Question 10 of 10

Which login error message is better for security?

Which login error message is better for security?

  1. A."No account exists with this email"
  2. B."Your password is wrong by one character"
  3. C."Invalid email or password"
  4. D."This account belongs to Asha"
Answer & explanation

Correct answer: "Invalid email or password"

A general message does not tell attackers which emails are registered.

Can you get the rest right without peeking?

Take the timed Quiz: Authentication, Sessions and JWT quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →