roelvanhintum/craft-enforcepassword
最新稳定版本:3.0.0-beta.1
Composer 安装命令:
composer require roelvanhintum/craft-enforcepassword
包简介
Incrementally enforced new and secure passwords.
README 文档
README
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, set to 0 to disable this feature 'passwordMaxLifetime' => 90, // Number of days a password can be used 'enforceUppercase' => true, // Min 1 uppercase letter 'enforceLowercase' => true, // Min 1 lowercase letter 'enforceDigit' => true, // Min 1 digit 'enforceSymbol' => true, // Min 1 symbol ];
Commandline usage
craft enforce-password/default
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-11-13