public function FailedLogins::getMessage in Security Review 8
Converts a result integer to a human-readable result message.
Parameters
int $result_const: The result integer.
Return value
string The human-readable result message.
Overrides Check::getMessage
File
- src/
Checks/ FailedLogins.php, line 145
Class
- FailedLogins
- Checks for abundant failed logins.
Namespace
Drupal\security_review\ChecksCode
public function getMessage($result_const) {
switch ($result_const) {
case CheckResult::FAIL:
return $this
->t('Failed login attempts from the same IP. These may be a brute-force attack to gain access to your site.');
default:
return $this
->t('Unexpected result.');
}
}