Function verify_password
Source pub fn verify_password(
password: impl AsRef<str>,
password_hash: impl AsRef<str>,
) -> Result<()>
Expand description
Verify a password against its hash
§Arguments
password - The password to verify
password_hash - The stored password hash (PHC format)
§Returns
Ok(()) if password is correct, Err otherwise