This commit is contained in:
David Baker 2017-03-08 11:58:20 +00:00
parent a9e2b9ec16
commit 1c99934b28
2 changed files with 2 additions and 1 deletions

View File

@ -72,7 +72,7 @@ class MsisdnPasswordRequestTokenRestServlet(RestServlet):
def on_POST(self, request):
body = parse_json_object_from_request(request)
assert_params_in_request(body,[
assert_params_in_request(body, [
'id_server', 'client_secret',
'country', 'phone_number', 'send_attempt',
])

View File

@ -17,6 +17,7 @@
import phonenumbers
from synapse.api.errors import SynapseError
def phone_number_to_msisdn(country, number):
try:
phoneNumber = phonenumbers.parse(number, country)