silverstripe-framework/tests/php/Security/MemberTest/TestPasswordValidator.php
2018-04-18 10:35:31 +12:00

17 lines
393 B
PHP

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