Skip to main content

make_for

Function make_for 

Source
pub(crate) async fn make_for(
    state: &AppState,
    block_id: &str,
    field: Field,
    profile: String,
    actor: &str,
    reason: &str,
    extra: Option<&'static str>,
    keep_focus: bool,
) -> Result<(String, String), String>
Expand description

Make a password for field of pane block_id, keep it in the Vault under profile (with extra as one more tag; reason is the agent’s, kept with the Activity line) before anything is typed, then set it into the page, as actor’s doing. Gives the site and the entry; never the value. A password made earlier for this pane and site, still unconfirmed, is replaced (the site refused it), the refused one kept as a version.