PHP code example of percipioglobal / craft-password-policy
1. Go to this page and download the library: Download percipioglobal/craft-password-policy library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
percipioglobal / craft-password-policy example snippets
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,
// Force user to reset their password after x days
"forcePasswordReset" => false,
// Provide amount of days for the recurring password to be reset -> default 90 days
"forcePasswordResetDays" => 90
];