0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-15 21:43:52 +01:00
This commit is contained in:
David Baker 2017-03-08 09:33:40 +00:00
parent 00466e2feb
commit 402a7bf63d
4 changed files with 7 additions and 7 deletions

View file

@ -188,7 +188,7 @@ class LoginRestServlet(ClientV1RestServlet):
# convert threepid identifiers to user IDs
if identifier["type"] == "m.id.thirdparty":
if not 'medium' in identifier or not 'address' in identifier:
if 'medium' not in identifier or 'address' not in identifier:
raise SynapseError(400, "Invalid thirdparty identifier")
address = identifier['address']