mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
22 lines
426 B
PHP
22 lines
426 B
PHP
|
<?php
|
||
|
|
||
|
namespace SilverStripe\Security\Tests\MemberTest;
|
||
|
|
||
|
use SilverStripe\Security\PasswordValidator;
|
||
|
|
||
|
/**
|
||
|
* @package framework
|
||
|
* @subpackage tests
|
||
|
*/
|
||
|
class TestPasswordValidator extends PasswordValidator
|
||
|
{
|
||
|
public function __construct()
|
||
|
{
|
||
|
parent::__construct();
|
||
|
$this->minLength(7);
|
||
|
$this->checkHistoricalPasswords(6);
|
||
|
$this->characterStrength(3, array('lowercase', 'uppercase', 'digits', 'punctuation'));
|
||
|
}
|
||
|
|
||
|
}
|