diff options
author | Mark Haines <mjark@negativecurvature.net> | 2014-12-16 13:53:43 +0000 |
---|---|---|
committer | Mark Haines <mjark@negativecurvature.net> | 2014-12-16 13:53:43 +0000 |
commit | 2af40cfa14ba579c156349ae3457a55bc93f8548 (patch) | |
tree | 2b94b53c72d51fc170549213ed8cb88556c2b501 /synapse/rest/register.py | |
parent | Add a script for talking matrix federation adding X-Matrix Authorization (diff) | |
parent | Fix pyflakes (diff) | |
download | synapse-2af40cfa14ba579c156349ae3457a55bc93f8548.tar.xz |
Merge pull request #25 from matrix-org/events_refactor
Event refactor
Diffstat (limited to 'synapse/rest/register.py')
-rw-r--r-- | synapse/rest/register.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/rest/register.py b/synapse/rest/register.py index f25e23a158..4f0f5a7531 100644 --- a/synapse/rest/register.py +++ b/synapse/rest/register.py @@ -21,6 +21,8 @@ from synapse.api.constants import LoginType from base import RestServlet, client_path_pattern import synapse.util.stringutils as stringutils +from synapse.util.async import run_on_reactor + from hashlib import sha1 import hmac import json @@ -233,7 +235,7 @@ class RegisterRestServlet(RestServlet): @defer.inlineCallbacks def _do_password(self, request, register_json, session): - yield + yield run_on_reactor() if (self.hs.config.enable_registration_captcha and not session[LoginType.RECAPTCHA]): # captcha should've been done by this stage! |