https://github.com/ethercreative/yii2-beenpwned-validator
https://github.com/ethercreative/yii2-beenpwned-validator
Last synced: 17 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ethercreative/yii2-beenpwned-validator
- Owner: ethercreative
- Created: 2017-10-23T09:50:55.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-23T15:52:06.000Z (over 8 years ago)
- Last Synced: 2025-02-22T12:34:09.448Z (over 1 year ago)
- Language: PHP
- Size: 1.95 KB
- Stars: 1
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Yii2 BeenPwned Validator
========================
Installation
------------
The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
Either run
```sh
composer require ethercreative/yii2-beenpwned-validator
```
or add
```json
"ethercreative/yii2-beenpwned-validator": "*"
```
to the require section of your `composer.json` file.
Usage
=====
```php
public function rules()
{
return [
['password', '\ethercreative\validators\BeenPwned'],
];
}
```
Todo
====
- [ ] Add option to check account
- [ ] Add option to check pastes
- [ ] Add option for `originalPasswordIsAHash`