ethercreative / yii2-beenpwned-validator
用于检查受损害数据的验证器,通过 https://haveibeenpwned.com/ API
0.1.1
2017-10-23 10:13 UTC
Requires
- guzzlehttp/guzzle: ^6.3
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2024-09-15 03:39:35 UTC
README
安装
安装此扩展的首选方式是通过 composer。
运行以下命令之一
composer require ethercreative/yii2-beenpwned-validator
或
"ethercreative/yii2-beenpwned-validator": "*"
将以下内容添加到您的 composer.json
文件的 require 部分中。
用法
public function rules() { return [ ['password', '\ethercreative\validators\BeenPwned'], ]; }
待办事项
- 添加检查账户的选项
- 添加检查粘贴内容的选项
- 添加
originalPasswordIsAHash
选项