message: Send legacy parameters on login call
  To support login on old HSes
diff: @@ -111,23 +111,32 @@ export default class Login {
  const isEmail = username.indexOf("@") > 0;
  let identifier;
  + let legacyParams; // parameters added to support old HSes
  if (phoneCountry && phoneNumber) {
  identifier = {
  type: 'm.id.phone',
  country: phoneCountry,
  number: phoneNumber,
  };
  + // No legacy support for phone number login
  } else if (isEmail) {
  identifier = {
  type: 'm.id.thirdparty',
  medium: 'email',
  address: username,
  };
  + legacyParams = {
  + medium: 'email',
  + address: username,
  + };
  } else {
  identifier = {
  type: 'm.id.user',
  user: username,
  };
  + legacyParams = {
  + user: username,
  + };
  }
  const loginParams = {
  @@ -135,6 +144,7 @@ export default class Login {
  identifier: identifier,
  initial_device_display_name: this._defaultDeviceDisplayName,
  };
  + Object.assign(loginParams, legacyParams);
  const client = this._createTemporaryClient();
  return client.login('m.login.password', loginParams).then(function(data) {
  