Skip to content

Generalise validate_email_for_user to work for other /requestToken endpoints#710

Merged
anoadragon453 merged 1 commit into
developfrom
anoa/generalise_verifying_emails
Sep 27, 2019
Merged

Generalise validate_email_for_user to work for other /requestToken endpoints#710
anoadragon453 merged 1 commit into
developfrom
anoa/generalise_verifying_emails

Conversation

@anoadragon453
Copy link
Copy Markdown
Member

This came up during implementation of #695. Registration calls the /r0/register/email/requestToken path rather than /account/3pid/email/requestToken.

Additionally remove the requirement for a $user parameter to be required, as none of the /requestToken endpoints require authentication.

…dpoints

Additionally remove the requirement for a  parameter to be required, as none of the /requestToken
endpoints require authentication.
@anoadragon453 anoadragon453 self-assigned this Sep 26, 2019
@anoadragon453 anoadragon453 changed the title Generalise validate_email_for_user to work for other /requestToken enndpoints Generalise validate_email_for_user to work for other /requestToken endpoints Sep 26, 2019
Copy link
Copy Markdown
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm.

The only thing I would have suggested would be to use a %params hash for named params since (a) it would let you give a sensible default for path (b) once you get to four params things start getting tricky to keep track of. But it's not a big deal

@anoadragon453
Copy link
Copy Markdown
Member Author

I'll leave it out for now, but I'll keep that in mind :)

@anoadragon453 anoadragon453 merged commit 3d6bfa3 into develop Sep 27, 2019
@anoadragon453 anoadragon453 deleted the anoa/generalise_verifying_emails branch September 27, 2019 13:25
anoadragon453 added a commit that referenced this pull request Mar 18, 2020
…ase-v1.5.0

* origin/release-v1.5.1:
  Update test to work with more room versions (#725)
  Update sytest scripts with correct format_tap.pl location (#727)
  Buildkite annotations for dendrite (#715)
  Ability to join a room using a given server_name (#726)
  Add Perl results.tap parser (#714)
  Better error when /send fails (#724)
  Make `send_and_await_event` pass params to `create_event` (#723)
  Enable testing of log contexts for synapse
  ensure that server ACLs are enforced (#717)
  Regression test for sync cache consistency bug (#718)
  Update a test to give better diagnostics (#719)
  Fix race in email validation test
  Update a number of tests to check non-v1 rooms (#716)
  Improve the log_if_fail diagnostics for public rooms list test (#713)
  Support validating msisdns with the identity server (#712)
  Move MTA methods from 12login to 11register (#711)
  Generalise validate_email_for_user to work for other /requestToken endpoints (#710)
  Remove reference to CircleCI in Dendrite's sytest script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants