Skip to content

Commit

Permalink
FIX Update FQCN for reference to RulesPasswordValidator
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Oct 2, 2024
1 parent 975ff8d commit acd5b48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Context/LoginContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit acd5b48

Please sign in to comment.