bitwarden_core::auth::password::policy

Function satisfies_policy

Source
pub(crate) fn satisfies_policy(
    password: String,
    strength: u8,
    policy: &MasterPasswordPolicyOptions,
) -> bool
Expand description

Validate the provided password passes the provided Master Password Requirements Policy.