silverstripe-framework/tests/php/Security/MemberTest/TestPasswordValidator.php
2016-11-23 19:25:12 +13:00

18 lines
375 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'));
}
}