mirror of
https://github.com/silverstripe/silverstripe-behat-extension
synced 2024-10-22 17:05:32 +02:00
FIX Update FQCN for reference to RulesPasswordValidator (#286)
This commit is contained in:
parent
975ff8dd81
commit
e9378fc9be
@ -12,7 +12,7 @@ use SilverStripe\Security\Member;
|
|||||||
use SilverStripe\Security\Permission;
|
use SilverStripe\Security\Permission;
|
||||||
use SilverStripe\Security\Security;
|
use SilverStripe\Security\Security;
|
||||||
use SilverStripe\MFA\Model\RegisteredMethod;
|
use SilverStripe\MFA\Model\RegisteredMethod;
|
||||||
use SilverStripe\Security\PasswordValidator;
|
use SilverStripe\Security\Validation\RulesPasswordValidator;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* LoginContext
|
* LoginContext
|
||||||
@ -316,7 +316,7 @@ class LoginContext implements Context
|
|||||||
|
|
||||||
// make sure any validation for password is skipped, since we're not testing complexity here
|
// make sure any validation for password is skipped, since we're not testing complexity here
|
||||||
$validator = Member::password_validator();
|
$validator = Member::password_validator();
|
||||||
$nullValidator = new PasswordValidator();
|
$nullValidator = new RulesPasswordValidator();
|
||||||
$nullValidator->setMinLength(0);
|
$nullValidator->setMinLength(0);
|
||||||
$nullValidator->setMinTestScore(0);
|
$nullValidator->setMinTestScore(0);
|
||||||
$nullValidator->setHistoricCount(0);
|
$nullValidator->setHistoricCount(0);
|
||||||
|
Loading…
Reference in New Issue
Block a user