function security_review_check_name_passwords in Security Review 6
Same name and namespace in other branches
- 7 security_review.inc \security_review_check_name_passwords()
1 call to security_review_check_name_passwords()
1 string reference to 'security_review_check_name_passwords'
- _security_review_security_checks in ./
security_review.inc - Checks for security_review_security_checks() or security_review_get_checks().
File
- ./
security_review.inc, line 576 - 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;
// We 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,
);
}