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

Show a confirmation page during user password reset #8004

Merged
merged 36 commits into from
Sep 10, 2020

Commits on Aug 21, 2020

  1. Configuration menu
    Copy the full SHA
    9003eb4 View commit details
    Browse the repository at this point in the history
  2. Load the new template

    anoadragon453 committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    5f7a834 View commit details
    Browse the repository at this point in the history
  3. Create new password reset confirmation endpoint

    Creates a new implementation-specific endpoint for accepting
    confirmation of password resets. This endpoint should be hit with the
    same parameters as the regular password reset submit_token endpoint.
    This endpoint will now complete the password resets, whereas the
    existing endpoint will now just show the confirmation template page.
    anoadragon453 committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    d9a19fc View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6140b32 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    622946e View commit details
    Browse the repository at this point in the history
  6. Add changelog

    anoadragon453 committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    3568e18 View commit details
    Browse the repository at this point in the history
  7. Remove unused fields

    anoadragon453 committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    8cc8ee4 View commit details
    Browse the repository at this point in the history
  8. typing

    anoadragon453 committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    b41b051 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    0a2b11f View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    1d79f7b View commit details
    Browse the repository at this point in the history

Commits on Aug 26, 2020

  1. Merge branch 'develop' of github.com:matrix-org/synapse into anoa/pas…

    …sword_reset_confirmation
    
    * 'develop' of github.com:matrix-org/synapse: (22 commits)
      Update the test federation client to handle streaming responses (#8130)
      Do not propagate profile changes of shadow-banned users into rooms. (#8157)
      Make SlavedIdTracker.advance have same interface as MultiWriterIDGenerator (#8171)
      Convert simple_select_one and simple_select_one_onecol to async (#8162)
      Fix rate limiting unit tests. (#8167)
      Add functions to `MultiWriterIdGen` used by events stream (#8164)
      Do not allow send_nonmember_event to be called with shadow-banned users. (#8158)
      Changelog fixes
      1.19.1rc1
      Make StreamIdGen `get_next` and `get_next_mult` async  (#8161)
      Wording fixes to 'name' user admin api filter (#8163)
      Fix missing double-backtick in RST document
      Search in columns 'name' and 'displayname' in the admin users endpoint (#7377)
      Add type hints for state. (#8140)
      Stop shadow-banned users from sending non-member events. (#8142)
      Allow capping a room's retention policy (#8104)
      Add healthcheck for default localhost 8008 port on /health endpoint. (#8147)
      Fix flaky shadow-ban tests. (#8152)
      Fix join ratelimiter breaking profile updates and idempotency (#8153)
      Do not apply ratelimiting on joins to appservices (#8139)
      ...
    anoadragon453 committed Aug 26, 2020
    Configuration menu
    Copy the full SHA
    3f4e350 View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2020

  1. Update synapse/rest/client/v2_alpha/account.py

    Co-authored-by: Richard van der Hoff <[email protected]>
    anoadragon453 and richvdh authored Aug 28, 2020
    Configuration menu
    Copy the full SHA
    d6addba View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    990178f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1b4458e View commit details
    Browse the repository at this point in the history
  4. Convert confirmation from request args to HTML form data

    To correctly emulate a POSTed URL-encoded form submission from the browser, we
    needed to do a few things.
    
    * URL-encode the request arguments and place their 'key=value' pairs, separated
      by '&' characters, into a byte string.
    * Place this byte string in the request body instead of the query parameters.
    * Set the request's 'Content-Type' header to
      'application/x-www-form-urlencoded', instead of 'application/json', which was
      previously the default when making a request in the unit tests.
    
    Additionally, @clokep noticed that we needed to seek to the end of the request
    content before passing it to twisted, else things blew up.
    anoadragon453 committed Aug 28, 2020
    Configuration menu
    Copy the full SHA
    0608fe1 View commit details
    Browse the repository at this point in the history
  5. Combine the submit_token and submit_token_confirm endpoints

    They are now simply GET vs POST /submit_token. Thanks to @richvdh for the idea.
    
    This commit also removes the endpoint from handling .../msisdn/... calls, as
    Synapse currently doesn't support handling password resets via this medium.
    
    There shouldn't be any cases where it is called.
    anoadragon453 committed Aug 28, 2020
    Configuration menu
    Copy the full SHA
    d9f5b4c View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    f25209c View commit details
    Browse the repository at this point in the history

Commits on Sep 1, 2020

  1. Update UPGRADE.rst

    anoadragon453 authored Sep 1, 2020
    Configuration menu
    Copy the full SHA
    5060a8e View commit details
    Browse the repository at this point in the history

Commits on Sep 2, 2020

  1. Merge branch 'develop' of github.com:matrix-org/synapse into anoa/pas…

    …sword_reset_confirmation
    
    * 'develop' of github.com:matrix-org/synapse: (39 commits)
      Fix errors when updating the user directory with invalid data (#8223)
      Explain better what GDPR-erased means (#8189)
      Convert additional databases to async/await part 3 (#8201)
      Convert appservice code to async/await. (#8207)
      Rename `_get_e2e_device_keys_txn` (#8222)
      Convert additional databases to async/await (#8199)
      Convert the well known resolver to async (#8214)
      Convert additional databases to async/await part 2 (#8200)
      Make MultiWriterIDGenerator work for streams that use negative stream IDs (#8203)
      Do not install setuptools 50.0. (#8212)
      Move and rename `get_devices_with_keys_by_user` (#8204)
      Rename `get_e2e_device_keys` to better reflect its purpose (#8205)
      Add a comment about _LimitedHostnameResolver
      Convert ReadWriteLock to async/await. (#8202)
      Fix incorrect return signature
      Fix `wait_for_stream_position` for multiple waiters. (#8196)
      Convert `event_push_actions`, `registration`, and `roommember` datastores to async (#8197)
      Only return devices with keys from `/federation/v1/user/devices/` (#8198)
      Convert state and stream stores and related code to async (#8194)
      Ensure that the OpenID Connect remote ID is a string. (#8190)
      ...
    anoadragon453 committed Sep 2, 2020
    Configuration menu
    Copy the full SHA
    8711981 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'anoa/password_reset_confirmation' of github.com:matrix-…

    …org/synapse into anoa/password_reset_confirmation
    
    * 'anoa/password_reset_confirmation' of github.com:matrix-org/synapse:
      Update UPGRADE.rst
      Switch from an unstable /_matrix/client prefix to /_synapse/client
      Combine the submit_token and submit_token_confirm endpoints
      Convert confirmation from request args to HTML form data
      Return 400 when accessing submit_token/_confirm with REMOTE behaviour
      Pull things from, instead of copying the entirety of, the config
      Update synapse/rest/client/v2_alpha/account.py
    anoadragon453 committed Sep 2, 2020
    Configuration menu
    Copy the full SHA
    1c1dc03 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9d90642 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7073605 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8efa7ac View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ad231e3 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    c1b9ad2 View commit details
    Browse the repository at this point in the history

Commits on Sep 3, 2020

  1. Configuration menu
    Copy the full SHA
    cb7c903 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    76e9000 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    717961d View commit details
    Browse the repository at this point in the history
  4. Update docstring

    anoadragon453 committed Sep 3, 2020
    Configuration menu
    Copy the full SHA
    775e310 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5ed7cf7 View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2020

  1. Configuration menu
    Copy the full SHA
    e2f0574 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c3f6ff5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2b6bde7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0ad0753 View commit details
    Browse the repository at this point in the history
  5. v1.20.0 -> v1.21.0

    anoadragon453 committed Sep 9, 2020
    Configuration menu
    Copy the full SHA
    c460e3b View commit details
    Browse the repository at this point in the history
  6. Rename 'internal' dir to 'synapse'

    We needed to switch the admin import as else it tries to import relatively, and
    we end up importing the wrong module.
    anoadragon453 committed Sep 9, 2020
    Configuration menu
    Copy the full SHA
    c5af421 View commit details
    Browse the repository at this point in the history