silverstripe-framework/tests/php/Security/MemberTest/TestPasswordValidator.php

18 lines
444 B
PHP
Raw Normal View History

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