Revert "Support registration & login with phone number"

This commit is contained in:
Erik Johnston 2017-03-13 09:58:39 +00:00
parent 3872c7a107
commit 7eae6eaa2f
9 changed files with 50 additions and 395 deletions

View file

@ -192,16 +192,6 @@ def parse_json_object_from_request(request):
return content
def assert_params_in_request(body, required):
absent = []
for k in required:
if k not in body:
absent.append(k)
if len(absent) > 0:
raise SynapseError(400, "Missing params: %r" % absent, Codes.MISSING_PARAM)
class RestServlet(object):
""" A Synapse REST Servlet.