Skip to main content

validate

Function validate 

Source
pub fn validate(password: &str) -> Result<(), PasswordPolicyError>
Expand description

Combined “is this password OK?” check — length first, then HIBP. HIBP failures are propagated; the caller decides fail-open/closed.