2016-10-14 14:30:05 +13:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace SilverStripe\Security\Tests\MemberTest;
|
|
|
|
|
2019-08-15 17:11:43 +12:00
|
|
|
use SilverStripe\Dev\TestOnly;
|
2016-10-14 14:30:05 +13:00
|
|
|
use SilverStripe\Security\PasswordValidator;
|
|
|
|
|
2019-08-15 17:11:43 +12:00
|
|
|
class TestPasswordValidator extends PasswordValidator implements TestOnly
|
2016-10-14 14:30:05 +13:00
|
|
|
{
|
2016-12-16 17:34:21 +13:00
|
|
|
public function __construct()
|
|
|
|
{
|
2018-04-18 10:35:31 +12:00
|
|
|
$this->setMinLength(7);
|
|
|
|
$this->setHistoricCount(6);
|
|
|
|
$this->setMinTestScore(3);
|
|
|
|
$this->setTestNames(['lowercase', 'uppercase', 'digits', 'punctuation']);
|
2016-12-16 17:34:21 +13:00
|
|
|
}
|
2016-10-14 14:30:05 +13:00
|
|
|
}
|