Skip to main content

verify_password

Function verify_password 

Source
pub fn verify_password(password: &str, stored: &str) -> bool
Expand description

Check a password against a stored hash string. A string this build cannot parse is false: the caller has already refused to start on one (see Credentials::resolve), so an unparsable value reaching here means something rewrote .env under a running process, and refusing every password is the safe half of that.