You are here

public function PasswordPolicyConstraint::failMessages in Password Policy 7.2

Gets messages indicating password failed to meet constraint.

Parameters

string $password: Password.

object $account: Account object.

Return value

string[] Failure messages.

File

includes/PasswordPolicyConstraint.inc, line 65
Contains PasswordPolicyConstraint.

Class

PasswordPolicyConstraint
Class PasswordPolicyConstraint.

Code

public function failMessages($password, $account) {
  return $this
    ->messages();
}