client: Remove a now unneeded workaround for UIA

master
Damir Jelić 2021-05-06 19:18:22 +02:00
parent 5df9ae350c
commit cad888e69b
2 changed files with 1 additions and 8 deletions

View File

@ -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("identifier".to_owned(), identifier);
auth_parameters.insert("password".to_owned(), password.to_owned().into()); 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 { AuthData::DirectRequest {
kind: "m.login.password", kind: "m.login.password",
auth_parameters, auth_parameters,

View File

@ -1730,9 +1730,6 @@ impl Client {
/// auth_parameters.insert("identifier".to_owned(), identifier); /// auth_parameters.insert("identifier".to_owned(), identifier);
/// auth_parameters.insert("password".to_owned(), "wordpass".into()); /// 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 { /// let auth_data = AuthData::DirectRequest {
/// kind: "m.login.password", /// kind: "m.login.password",
/// auth_parameters, /// auth_parameters,
@ -2173,8 +2170,7 @@ impl Client {
/// }); /// });
/// auth_parameters.insert("identifier".to_owned(), identifier); /// auth_parameters.insert("identifier".to_owned(), identifier);
/// auth_parameters.insert("password".to_owned(), password.to_owned().into()); /// 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 { /// AuthData::DirectRequest {
/// kind: "m.login.password", /// kind: "m.login.password",
/// auth_parameters, /// auth_parameters,