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'],
|