[][src]Function cccolutils::has_credentials_for_realm

pub fn has_credentials_for_realm(realm: String) -> Result<bool, String>

Checks if there is an authenticated user for the given realm.

It will return Ok(true) if there is an authenticated user, and Ok(false) otherwise.

Err() values are returned when string conversions fail.

let authenticated_for_realm = cccolutils::has_credentials_for_realm(
    String::from("FEDORAPROJECT.ORG")
).unwrap();