From cafeb5e0e7af12f0e6d6ce3337ac0d1f7f8c12a2 Mon Sep 17 00:00:00 2001 From: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> Date: Fri, 24 Jan 2020 15:23:31 +0000 Subject: Fix resetting password via a phone number (#21) --- changelog.d/21.bugfix | 1 + synapse/rest/client/v2_alpha/account.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog.d/21.bugfix diff --git a/changelog.d/21.bugfix b/changelog.d/21.bugfix new file mode 100644 index 0000000000..630d7812f7 --- /dev/null +++ b/changelog.d/21.bugfix @@ -0,0 +1 @@ +Fix resetting user passwords via a phone number. diff --git a/synapse/rest/client/v2_alpha/account.py b/synapse/rest/client/v2_alpha/account.py index 9bf4afac66..974465e90c 100644 --- a/synapse/rest/client/v2_alpha/account.py +++ b/synapse/rest/client/v2_alpha/account.py @@ -339,7 +339,7 @@ class PasswordResetSubmitTokenServlet(RestServlet): assert_valid_client_secret(body["client_secret"]) - valid, _ = yield self.datastore.validate_threepid_validation_token( + valid, _ = yield self.datastore.validate_threepid_session( body['sid'], body['client_secret'], body['token'], -- cgit 1.5.1