Skip to main content

profiles_add

Function profiles_add 

Source
pub async fn profiles_add(
    db: State<'_, DatabaseWrapper>,
    creds: State<'_, CredentialStoreWrapper>,
    auth_manager: State<'_, AuthManagerWrapper>,
    username: String,
    password: String,
    pin_code: Option<String>,
    device_id: String,
) -> Result<Profile, String>
Expand description

Add another account from the current server to this device.

Takes no server URL. That is the same-server constraint expressed as a signature rather than as form validation: there is no way to ask this command for an account somewhere else.

TRACES: UR-082 | DR-267