class Illuminate / Validation / NotPwnedVerifier

NotPwnedVerifier

Implements

Properties

protected

$factory Factory

The HTTP factory instance.

Default: null
protected

$timeout int

The number of seconds the request can run before timing out.

Default: null

Methods

public

__construct ( $factory , $timeout ) : void

Create a new uncompromised verifier.

Parameters

public

verify ( $data ) : bool

Verify that the given data has not been compromised in public breaches.

Parameters

  • $data array
protected

getHash ( $value ) : array

Get the hash and its first 5 chars.

Parameters

  • $value string
protected

Search by the given hash prefix and returns all occurrences of leaked passwords.

Parameters

  • $hashPrefix string