Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Move and refactor LoginRestServlet helper methods #8182

Merged
merged 9 commits into from
Aug 28, 2020

Commits on Aug 26, 2020

  1. Move login_submission_legacy_convert, login_id_thirdparty_from_phone …

    …methods
    
    We'll be using them in AuthHandler in the separate PR, so move them to AuthHandler
    instead of importing them from LoginRestServlet
    anoadragon453 committed Aug 26, 2020
    Configuration menu
    Copy the full SHA
    bb9f3a1 View commit details
    Browse the repository at this point in the history
  2. Refactor and rename login_submission_legacy_convert

    Additionally moves some checks that were in
    `LoginRestServlet._do_other_login` to
    `convert_client_dict_legacy_fields_to_identifier` as they would be
    applicable to any other callers of this function.
    
    Additionally, there is a functional change here, in that we now return
    M_MISSING_PARAM's instead of M_UNKNOWN errcodes for when `identifier` or
    `type` parameters are missing.
    anoadragon453 committed Aug 26, 2020
    Configuration menu
    Copy the full SHA
    6cd0a44 View commit details
    Browse the repository at this point in the history
  3. Refactor and rename login_id_thirdparty_from_phone

    This function changes the errcode of a SynapseError from M_UNKNOWN to M_INVALID_PARAM.
    I think it fits better, but this is changing behaviour...
    
    Also corrected docstring. There is no 'm.id.threepid' identifier type.
    anoadragon453 committed Aug 26, 2020
    Configuration menu
    Copy the full SHA
    ed30684 View commit details
    Browse the repository at this point in the history
  4. Changelog

    anoadragon453 committed Aug 26, 2020
    Configuration menu
    Copy the full SHA
    69f2b30 View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2020

  1. JsonDicts

    anoadragon453 committed Aug 27, 2020
    Configuration menu
    Copy the full SHA
    b768dd0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3a98400 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    11329e8 View commit details
    Browse the repository at this point in the history
  4. lint

    anoadragon453 committed Aug 27, 2020
    Configuration menu
    Copy the full SHA
    e3e48f0 View commit details
    Browse the repository at this point in the history
  5. Fix typo

    anoadragon453 committed Aug 27, 2020
    Configuration menu
    Copy the full SHA
    47e8d84 View commit details
    Browse the repository at this point in the history