Tiger_Validate_Password

@api · extends Zend_Validate_Abstract

Tiger_Validate_Password — a form validator that runs the platform password policy.

Wraps Tiger_Policy_Password so a password field validates the SAME rules everywhere — at submit, and (via convenience validation) on blur. The first policy violation becomes the field's message, so the user sees exactly what to fix. Pair it in the UI with the live strength meter (tiger.password-strength.js), but this is the authority.

Methods

__construct()

__construct($userId = null)

Build the validator, optionally scoped to a user for reuse-prevention.

  • $userId string|null — when set, enables reuse-prevention against this user's history

isValid()

isValid($value)

Run the platform password policy; the first violation becomes the field message.

  • $value string — the submitted password

Returns bool — true when the password satisfies the policy