function security_review_check_name_passwords in Security Review 7
Same name and namespace in other branches
- 6 security_review.inc \security_review_check_name_passwords()
1 string reference to 'security_review_check_name_passwords'
- _security_review_security_checks in ./
security_review.inc - Core Security Review's checks.
File
- ./
security_review.inc, line 575 - Stand-alone security checks and review system.
Code
function security_review_check_name_passwords($last_check = NULL) {
$result = TRUE;
$check_result_value = array();
$timestamp = NULL;
// Check whether trusted roles have weak passwords.
$trusted_roles = security_review_trusted_roles();
if (!empty($trusted_roles)) {
$trusted_roles = array_keys($trusted_roles);
$check_result_value = _security_review_weak_passwords($trusted_roles);
}
if (!empty($check_result_value)) {
$result = FALSE;
}
return array(
'result' => $result,
'value' => $check_result_value,
);
}