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. Jul 13 '17 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
    Jul 13 '17 at 4:46
  • @SLman It does show. Check my answer Jul 13 '17 at 5:40

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.