Skip to content
Craft plugin for incrementally enforced new and secure passwords.
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
CHANGELOG.md
LICENSE.md
README.md
composer.json
phpcs.xml.dist

README.md

Craft Enforce Password plugin

Incrementally enforces a new and secure password not matching the last 5 passwords. Stores password history in a database table.

Validates passwords by the following:

  • Minimal length
  • Maximum length
  • At least 1 uppercase character
  • At least 1 lowercase character
  • At least 1 digit
  • At least 1 symbol
  • Can't match username or email
  • Different from previous passwords

Config

Create a config/enforce-password.php with the following contents:

<?php

return [
    'passwordMinLength'    => 16,
    'passwordMaxLength'    => 255,
    'passwordHistoryLimit' => 5, // Number of passwords kept in history
    'passwordMaxLifetime'  => 90, // Number of days a password can be used
];

Commandline usage

craft enforce-password/default

License

Copyright © Born05

See license

You can’t perform that action at this time.