silverstripe-framework/tests/php/Security/MemberTest/TestPasswordValidator.php
2016-12-19 16:08:19 +13:00

17 lines
407 B
PHP

<?php
namespace SilverStripe\Security\Tests\MemberTest;
use SilverStripe\Security\PasswordValidator;
class TestPasswordValidator extends PasswordValidator
{
public function __construct()
{
parent::__construct();
$this->minLength(7);
$this->checkHistoricalPasswords(6);
$this->characterStrength(3, array('lowercase', 'uppercase', 'digits', 'punctuation'));
}
}