percipio.london :Password Policy

Make sure your passwords don’t flee

Enforce a password policy on your users. This plugin can also check the Have I been Pwned database to make sure users use a password that is secure.

Requirements

This plugin requires Craft CMS 3.5+

Installation

To install the plugin, follow these instructions.

  1. Open your terminal and go to your Craft project:
     `cd /path/to/project`
    
  2. Then tell Composer to load the plugin:
     `composer require percipioglobal/craft-password-policy`
    
  3. In the Control Panel, go to Settings → Plugins and click the Install” button for Colour Swatches.

Configuration

You can configure this plugin by adding a config/password-policy.php file:

<?php

return [
 // Minimum password length
 "minLength" => 16,
 
 // Maximum password length
 "maxLength" => 160,
 
 // Force users to use different cases
 "cases" => false,
 
 // Require at least 1 number
 "numbers" => false,
 
 // Require at least one symbol
 "symbols" => false,
 
 // Show a password strength indicator
 "showStrengthIndicator" => true,
];

Or through the plugin settings.