Skip to main content

hash_empty

Function hash_empty 

Source
async fn hash_empty(
    services: &Services,
    user_id: &UserId,
) -> Result<Option<bool>>
Expand description

Whether the account’s stored password is empty, or None when it has no row at all.

Both adoptions need the three states kept apart: a read failure is neither an active account nor a deactivated one, and mistaking it for either is how a pass that runs once leaves an account in the wrong state for good.