class PasswordGenerationService (View source)

Generates random passwords that satisfy the configured password policy.

Methods

__construct(ConfigurationInterface $configManager)

No description

string
generatePassword(int|null $length = null)

Generates a random password that complies with password policy

Details

__construct(ConfigurationInterface $configManager)

No description

Parameters

ConfigurationInterface $configManager

string generatePassword(int|null $length = null)

Generates a random password that complies with password policy

Parameters

int|null $length

Custom length (overrides policy settings)

Return Value

string

Generated password