Change the default "The login is invalid" error message


Feb 27, 2012
cPanel Access Level
Root Administrator

We have a few customers complaining about getting locked out of cPanel.
It turns out that the accounts are locked out by cPhulk due to numerous incorrect password attempts.

From what I've gatehered the old message below isnt being used anymore as per and now only display "The login is invalid"

This account is currently locked out because a brute force attempt was detected. Please wait a few minutes and try again. Attempting to login again will only increase this delay. If you frequently experience this problem, we recommend having your username changed to something less generic.

My question is how can I customize the message that is displayed to the customer when his account is locked out due to too many incorrect attempts. With the locales I can change the message as described in the above mentioned post but it shows after the first incorrect attempt.

So I need

1-5 Wrong attempts display "The login is invalid"
5+ Wrong attempts display "Too many incorrect attempts ......."