Skip to content
Craft plugin for incrementally enforced new and secure passwords.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

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


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


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


Copyright © Born05

See license

You can’t perform that action at this time.