Function verify

Source
pub async fn verify<'a>(password: String, hash: String) -> Result<bool>
Expand description

Verify a password with the given hash.

§Returns

Returns a bool, true if the password is valid, false if not valid.

§Errors

This function errors if any of the following happen:

  • the given config is invalid
  • verifying the password fails
  • communication between threads fails