PasswordValidatorExtension
extends Extension
in package
Uses
Configurable
Class \Firesphere\HaveIBeenPwned\Extensions\PasswordValidatorExtension
Table of Contents
Properties
- $owner : PasswordValidator|PasswordValidatorExtension
- $params : array<string|int, mixed>
- $service : HaveIBeenPwnedService
Methods
- getParams() : array<string|int, mixed>
- setParams() : mixed
- updateValidatePassword() : void
- addMessages() : mixed
- checkPwnCount() : int
- checkPwndSites() : string
Properties
$owner
public
PasswordValidator|PasswordValidatorExtension
$owner
$params
protected
array<string|int, mixed>
$params
= []
$service
protected
HaveIBeenPwnedService
$service
Methods
getParams()
public
getParams() : array<string|int, mixed>
Return values
array<string|int, mixed>setParams()
public
setParams(array<string|int, mixed> $params) : mixed
Parameters
- $params : array<string|int, mixed>
updateValidatePassword()
public
updateValidatePassword(string $pwd, Member|MemberExtension $member, ValidationResult $valid) : void
Parameters
- $pwd : string
- $member : Member|MemberExtension
- $valid : ValidationResult
Tags
addMessages()
protected
addMessages(ValidationResult $valid, int $isPwndCount, string $breached) : mixed
Parameters
- $valid : ValidationResult
- $isPwndCount : int
- $breached : string
checkPwnCount()
protected
checkPwnCount( $pwd, $member) : int
Parameters
Tags
Return values
intcheckPwndSites()
protected
checkPwndSites( $savePwnd, $member) : string