summary refs log tree commit diff
path: root/synapse/rest/client/v2_alpha/account.py
diff options
context:
space:
mode:
authorAndrew Morgan <1342360+anoadragon453@users.noreply.github.com>2020-01-24 15:23:31 +0000
committerGitHub <noreply@github.com>2020-01-24 15:23:31 +0000
commitcafeb5e0e7af12f0e6d6ce3337ac0d1f7f8c12a2 (patch)
tree0d8be5ef34c1bec35140bff61acf2cffc38e4532 /synapse/rest/client/v2_alpha/account.py
parentValidate client_secret parameter according to spec (#20) (diff)
downloadsynapse-cafeb5e0e7af12f0e6d6ce3337ac0d1f7f8c12a2.tar.xz
Fix resetting password via a phone number (#21) dinsic_2020-02-10
Diffstat (limited to '')
-rw-r--r--synapse/rest/client/v2_alpha/account.py2
1 files changed, 1 insertions, 1 deletions
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'],