From cad888e69b0f86cd2c8530c5950afc597065e665 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Thu, 6 May 2021 19:18:22 +0200 Subject: [PATCH] client: Remove a now unneeded workaround for UIA --- matrix_sdk/examples/cross_signing_bootstrap.rs | 3 --- matrix_sdk/src/client.rs | 6 +----- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/matrix_sdk/examples/cross_signing_bootstrap.rs b/matrix_sdk/examples/cross_signing_bootstrap.rs index 710ddc1f..03e771fa 100644 --- a/matrix_sdk/examples/cross_signing_bootstrap.rs +++ b/matrix_sdk/examples/cross_signing_bootstrap.rs @@ -22,9 +22,6 @@ fn auth_data<'a>(user: &UserId, password: &str, session: Option<&'a str>) -> Aut auth_parameters.insert("identifier".to_owned(), identifier); auth_parameters.insert("password".to_owned(), password.to_owned().into()); - // This is needed because of https://github.com/matrix-org/synapse/issues/5665 - auth_parameters.insert("user".to_owned(), user.as_str().into()); - AuthData::DirectRequest { kind: "m.login.password", auth_parameters, diff --git a/matrix_sdk/src/client.rs b/matrix_sdk/src/client.rs index 477c7473..5b7dd8c5 100644 --- a/matrix_sdk/src/client.rs +++ b/matrix_sdk/src/client.rs @@ -1730,9 +1730,6 @@ impl Client { /// auth_parameters.insert("identifier".to_owned(), identifier); /// auth_parameters.insert("password".to_owned(), "wordpass".into()); /// - /// // This is needed because of https://github.com/matrix-org/synapse/issues/5665 - /// auth_parameters.insert("user".to_owned(), "@example:localhost".into()); - /// /// let auth_data = AuthData::DirectRequest { /// kind: "m.login.password", /// auth_parameters, @@ -2173,8 +2170,7 @@ impl Client { /// }); /// auth_parameters.insert("identifier".to_owned(), identifier); /// auth_parameters.insert("password".to_owned(), password.to_owned().into()); - /// // This is needed because of https://github.com/matrix-org/synapse/issues/5665 - /// auth_parameters.insert("user".to_owned(), user.as_str().into()); + /// /// AuthData::DirectRequest { /// kind: "m.login.password", /// auth_parameters,