Version: current

     1 <?php
     2 /**
     3  * This {@link PasswordValidator} implements the NZ E-Government Guidelines for passwords
     4  * @package sapphire
     5  * @subpackage security
     6  */
     7 class NZGovtPasswordValidator extends PasswordValidator {
     8     function __construct() {
     9         parent::__construct();
    10         $this->minLength(7);
    11         $this->checkHistoricalPasswords(6);
    12         $this->characterStrength(3, array('lowercase','uppercase','digits','punctuation'));
    13     }
    14
    15 }

[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the Silverstripe Forums to ask development related questions. -