/// Finishes setting a user's password by finishing the `OPAQUE-PAKE`
/// login.
Finishes setting a user's password by finishing the `OPAQUE-PAKE`
login.
Finishes setting a user ' s password by finishing the ` OPAQUE - PAKE ` login .
pub async fn finish_login_with_password(
        &self,
        login_finalization: LoginFinalization,
    ) -> Result<(), bonsaidb_core::Error> {
        match self
            .send_request(Request::Server(ServerRequest::FinishPasswordLogin {
                login_finalization,
            }))
            .await?
        {
            Response::Server(ServerResponse::LoggedIn { permissions }) => {
                let mut effective_permissions = fast_async_lock!(self.data.effective_permissions);
                *effective_permissions = Some(permissions);
                Ok(())
            }
            Response::Error(err) => Err(err),
            other => Err(bonsaidb_core::Error::Networking(
                networking::Error::UnexpectedResponse(format!("{:?}", other)),
            )),
        }
    }
pub async fn finish_login_with_password ( & self , login_finalization : LoginFinalization , ) -> Result < ( ) , bonsaidb_core :: Error > { match self . send_request ( Request :: Server ( ServerRequest :: FinishPasswordLogin { login_finalization , } ) ) . await ? { Response :: Server ( ServerResponse :: LoggedIn { permissions } ) => { let mut effective_permissions = fast_async_lock ! ( self data effective_permissions ) ; * effective_permissions = Some ( permissions ) ; Ok ( ( ) ) } Response :: Error ( err ) => Err ( err ) , other => Err ( bonsaidb_core :: Error :: Networking ( networking :: Error :: UnexpectedResponse ( format ! ( " " other ) ) , ) ) , } }
Finishes setting a user's password by finishing the `OPAQUE-PAKE`
login.
Finishes setting a user ' s password by finishing the ` OPAQUE - PAKE ` login .
&self
login_finalization
LoginFinalization