class PasswordPolicyService implements PasswordPolicyInterface (View source)

Checks a password against the security.password_policy rules and reports the ones it fails.

Methods

__construct(ConfigurationInterface $configManager)

No description

array
validatePassword(string $password)

No description

array
getPolicyConfig()

No description

Details

__construct(ConfigurationInterface $configManager)

No description

Parameters

ConfigurationInterface $configManager

array validatePassword(string $password)

No description

Parameters

string $password

Return Value

array

One message per failed rule; empty when the password passes

array getPolicyConfig()

No description

Return Value

array