PasswordPolicy

class \TYPO3\CMS\Core\PasswordPolicy\PasswordPolicy

Password policy class which holds information about configured password validators and password requirements

Table of Contents

Properties

$action  : PasswordPolicyAction
$validators  : AbstractPasswordValidator[]

Methods

__construct()  : mixed
getAction()  : PasswordPolicyAction
getRequirements()  : array
Returns an array with requirements (e.g. ["Password must at least contain one char"]) for all configured password validators. The structure of the array is as following:
getValidators()  : array
hasValidators()  : bool

Properties

Methods

getRequirements()

Returns an array with requirements (e.g. ["Password must at least contain one char"]) for all configured password validators. The structure of the array is as following:

public getRequirements() : array

['classId.validatorId' => 'Requirement text']

Return values

array

getValidators()

public getValidators() : array

Return values

array

hasValidators()

public hasValidators() : bool

Return values

bool
On this page