mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
14 lines
367 B
PHP
14 lines
367 B
PHP
|
<?php
|
||
|
|
||
|
/**
|
||
|
* This {@link PasswordValidator} implements the NZ E-Government Guidelines for passwords
|
||
|
*/
|
||
|
class NZGovtPasswordValidator extends PasswordValidator {
|
||
|
function __construct() {
|
||
|
parent::__construct();
|
||
|
$this->minLength(7);
|
||
|
$this->checkHistoricalPasswords(6);
|
||
|
$this->characterStrength(3, array('lowercase','uppercase','digits','punctuation'));
|
||
|
}
|
||
|
|
||
|
}
|