rex_backend_password_policy
extends rex_password_policy
in package
Uses
rex_factory_trait
Tags
Table of Contents
Methods
- __construct() : mixed
- check() : true|string
- factory() : static
- getBlockAccountAfter() : DateInterval|null
- getDescription() : string|null
- getForceRenewAfter() : DateInterval|null
- getHtmlAttributes() : array<string, string>
- Generates the corresponding html attributes `minlength`, `maxlength` and `passwordrules`.
- getRule() : string
- isValid() : bool
- matchesCount() : bool
Methods
__construct()
public
__construct() : mixed
Tags
check()
public
check(mixed $password[, mixed $id = null ]) : true|string
Parameters
- $password : mixed
- $id : mixed = null
Return values
true|string —true
on success, otherwise an error message
factory()
public
static factory() : static
Return values
staticgetBlockAccountAfter()
public
getBlockAccountAfter() : DateInterval|null
Return values
DateInterval|nullgetDescription()
public
getDescription() : string|null
Return values
string|nullgetForceRenewAfter()
public
getForceRenewAfter() : DateInterval|null
Return values
DateInterval|nullgetHtmlAttributes()
Generates the corresponding html attributes `minlength`, `maxlength` and `passwordrules`.
public
getHtmlAttributes() : array<string, string>
Tags
Return values
array<string, string>getRule()
protected
getRule() : string
Tags
Return values
stringisValid()
protected
isValid(string $password) : bool
Parameters
- $password : string
Return values
boolmatchesCount()
protected
matchesCount(int $count, array{min?: int, max?: int} $options) : bool
Parameters
- $count : int
- $options : array{min?: int, max?: int}