mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-02 07:48:00 +02: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'));
|
|
}
|
|
|
|
}
|