ethercreative/yii2-beenpwned-validator

A validator to check for compromised data, through the https://haveibeenpwned.com/ API

0.1.1 2017-10-23 10:13 UTC

This package is not auto-updated.

Last update: 2024-04-28 01:29:30 UTC


README

Installation

The preferred way to install this extension is through composer.

Either run

composer require ethercreative/yii2-beenpwned-validator

or add

"ethercreative/yii2-beenpwned-validator": "*"

to the require section of your composer.json file.

Usage

public function rules()
{
    return [
        ['password', '\ethercreative\validators\BeenPwned'],
    ];
}

Todo

  • Add option to check account
  • Add option to check pastes
  • Add option for originalPasswordIsAHash