Skip to main content

verify_pin

Function verify_pin 

Source
pub fn verify_pin(pin: &str, stored: &str) -> bool
Expand description

Compare a candidate PIN against a stored PHC string.

A malformed stored hash verifies as false rather than erroring: a corrupt row should send the user down the password route, not wedge the picker.

TRACES: UR-083 | DR-268