The method BruteForceAttemptException::getMessageKey() must not return the default AuthenticationException::getMessageKey() response. The response string must be uniquely identifyable as a brute force attack as well as should be presentable to user as it is.
Current Behavior
The method BruteForceAttemptException::getMessageKey() isn't implemented, hence such call falls back to the parent and AuthenticationException::getMessageKey() returns the default response string, 'An authentication exception occurred.'
Possible Solution
15
Add the following method to BruteForceAttemptException
/**
* @return string
*/
public function getMessageKey()
{
return 'Too many authentication failures';
}
Expected Behavior
The method
BruteForceAttemptException::getMessageKey()
must not return the defaultAuthenticationException::getMessageKey()
response. The response string must be uniquely identifyable as a brute force attack as well as should be presentable to user as it is.Current Behavior
The method
BruteForceAttemptException::getMessageKey()
isn't implemented, hence such call falls back to the parent andAuthenticationException::getMessageKey()
returns the default response string, 'An authentication exception occurred.'Possible Solution
15
Add the following method to
BruteForceAttemptException