config->getEnforceNonCommonPassword($context); if (!$enforceNonCommonPassword) { return; } $passwordFile = __DIR__ . '/../../lists/list-' . strlen($password) . '.php'; if (file_exists($passwordFile)) { $commonPasswords = require $passwordFile; assert(is_array($commonPasswords)); if (isset($commonPasswords[strtolower($password)])) { $message = 'Password is among the 1,000,000 most common ones. Please make it unique.'; $message_t = $this->l->t( 'Password is among the 1,000,000 most common ones. Please make it unique.' ); throw new HintException($message, $message_t); } } } }