1
0
mirror of https://github.com/silverstripe/silverstripe-framework synced 2024-10-22 12:05:37 +00:00

18 lines
444 B
PHP
Raw Normal View History

2016-10-14 14:30:05 +13:00
<?php
namespace SilverStripe\Security\Tests\MemberTest;
use SilverStripe\Dev\TestOnly;
2016-10-14 14:30:05 +13:00
use SilverStripe\Security\PasswordValidator;
class TestPasswordValidator extends PasswordValidator implements TestOnly
2016-10-14 14:30:05 +13:00
{
public function __construct()
{
$this->setMinLength(7);
$this->setHistoricCount(6);
$this->setMinTestScore(3);
$this->setTestNames(['lowercase', 'uppercase', 'digits', 'punctuation']);
}
2016-10-14 14:30:05 +13:00
}