From da6c5e0f3ee6d60d19a32a0b642fd0b63d787332 Mon Sep 17 00:00:00 2001 From: omahm Date: Wed, 21 Oct 2020 15:31:53 +0100 Subject: [PATCH] Replace the term blacklist with denylist --- src/Audit/User1.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Audit/User1.php b/src/Audit/User1.php index 9745833..9b63085 100644 --- a/src/Audit/User1.php +++ b/src/Audit/User1.php @@ -14,7 +14,7 @@ * description = "The email the user account should be.", * ) * @Param( - * name = "blacklist", + * name = "denylist", * description = "List of usernames that are not acceptable.", * ) * @Param( @@ -38,7 +38,7 @@ public function audit(Sandbox $sandbox) { $fixups = []; // Username. - $pattern = $sandbox->getParameter('blacklist'); + $pattern = $sandbox->getParameter('denylist'); if (preg_match("#${pattern}#i", $user->name)) { $errors[] = "Username '$user->name' is too easy to guess."; }