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