Skip to main content

ensure_peer_account

Function ensure_peer_account 

Source
pub fn ensure_peer_account(
    conn: &Connection,
) -> Result<Option<(String, String)>, String>
Expand description

Gives a LAN share someone to sign in as. Peers authenticate as named users, never with the master password, so a vault with no such user would be advertised and unreachable (the desktop used to refuse to start and send the owner off to the Users panel). Returns the credentials of the account it created, to be shown once, or None when one already exists.