/// Initiates a login request for this client.
Initiates a login request for this client.
Initiates a login request for this client .
pub async fn initiate_login(
        &self,
        username: &str,
        password_request: LoginRequest,
        server: &CustomServer<B>,
    ) -> Result<LoginResponse, bonsaidb_core::Error> {
        let (user_id, login, response) = server
            .internal_login_with_password(username, password_request)
            .await?;
        self.set_pending_password_login(user_id, login).await;
        Ok(response)
    }
pub async fn initiate_login ( & self , username : & str , password_request : LoginRequest , server : & CustomServer < B > , ) -> Result < LoginResponse , bonsaidb_core :: Error > { let ( user_id , login , response ) = server . internal_login_with_password ( username , password_request ) . await ? ; self . set_pending_password_login ( user_id , login ) . await ; Ok ( response ) }
Initiates a login request for this client.
Initiates a login request for this client .
&self
username
&str
password_request
LoginRequest
server
&CustomServer<B>