silverstripe-framework/tests/php/Security/MemberTest/TestPasswordValidator.php
2024-10-02 14:38:21 +13:00

18 lines
465 B
PHP

<?php
namespace SilverStripe\Security\Tests\MemberTest;
use SilverStripe\Dev\TestOnly;
use SilverStripe\Security\Validation\RulesPasswordValidator;
class TestPasswordValidator extends RulesPasswordValidator implements TestOnly
{
public function __construct()
{
$this->setMinLength(7);
$this->setHistoricCount(6);
$this->setMinTestScore(3);
$this->setTestNames(['lowercase', 'uppercase', 'digits', 'punctuation']);
}
}