From acd5b4811d63c42375d9651acdbf18f99b73f3c1 Mon Sep 17 00:00:00 2001
From: Guy Sartorelli <guy.sartorelli@gmail.com>
Date: Wed, 2 Oct 2024 15:54:51 +1300
Subject: [PATCH] FIX Update FQCN for reference to RulesPasswordValidator

---
 src/Context/LoginContext.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Context/LoginContext.php b/src/Context/LoginContext.php
index cf8217a2..850783d1 100644
--- a/src/Context/LoginContext.php
+++ b/src/Context/LoginContext.php
@@ -12,7 +12,7 @@
 use SilverStripe\Security\Permission;
 use SilverStripe\Security\Security;
 use SilverStripe\MFA\Model\RegisteredMethod;
-use SilverStripe\Security\PasswordValidator;
+use SilverStripe\Security\Validation\RulesPasswordValidator;
 
 /**
  * LoginContext
@@ -316,7 +316,7 @@ protected function generateMember($email, $password, $group, $identifier)
 
         // make sure any validation for password is skipped, since we're not testing complexity here
         $validator = Member::password_validator();
-        $nullValidator = new PasswordValidator();
+        $nullValidator = new RulesPasswordValidator();
         $nullValidator->setMinLength(0);
         $nullValidator->setMinTestScore(0);
         $nullValidator->setHistoricCount(0);