I got error message like "Invalid username, password, security token; or user locked out."

Is there any way I can get the exact reason for login failure?

If the password is wrong then it should return "Invalid password" not the entire message like the above

  • You can check the logs in User detail page. Commented Jul 13, 2017 at 4:44
  • I don't think users has access to those logs. Almost all systems that I know does not display "Invalid Password" error, even if it is actually an invalid password. It will be a huge security issue.
    – SL man
    Commented Jul 13, 2017 at 4:46
  • @SLman It does show. Check my answer Commented Jul 13, 2017 at 5:40

2 Answers 2


Viewing the User Detail Page log can give you the insight

You can view the user detail page log. It will give you insights.


The message you get on the login page is very secured. You cannot modify that. Because Salesforce ensures that any unauthorized user does not get any specific information around which field actually was incorrect.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .