"Invalid Login Credentials" and custom authentication
PCHIUSep 30 2012 — edited Oct 2 2012I am using custom authentication, have my own login function to return boolean value back to apex. Everything is working fine.
Now, I want to enhance it, display a different error message depends on the reason why the login failed.
For example, if the password doesn't match, I want to display the good old "Invalid Login Credentials".
However, if the password failed for 10 consecutive time, I want to display "too many failed attempt, FBI will be at your door shortly", something like that.
What is the best way to do it?