mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-19 12:14:20 -05:00
More underscores
This commit is contained in:
parent
a218619626
commit
7ac8a60c6f
@ -130,7 +130,7 @@ class ThreepidRestServlet(RestServlet):
|
|||||||
400, "Failed to auth 3pid", Codes.THREEPID_AUTH_FAILED
|
400, "Failed to auth 3pid", Codes.THREEPID_AUTH_FAILED
|
||||||
)
|
)
|
||||||
|
|
||||||
for reqd in ['medium', 'address', 'validatedAt']:
|
for reqd in ['medium', 'address', 'validated_at']:
|
||||||
if reqd not in threepid:
|
if reqd not in threepid:
|
||||||
logger.warn("Couldn't add 3pid: invalid response from ID sevrer")
|
logger.warn("Couldn't add 3pid: invalid response from ID sevrer")
|
||||||
raise SynapseError(500, "Invalid response from ID Server")
|
raise SynapseError(500, "Invalid response from ID Server")
|
||||||
@ -139,7 +139,7 @@ class ThreepidRestServlet(RestServlet):
|
|||||||
auth_user.to_string(),
|
auth_user.to_string(),
|
||||||
threepid['medium'],
|
threepid['medium'],
|
||||||
threepid['address'],
|
threepid['address'],
|
||||||
threepid['validatedAt'],
|
threepid['validated_at'],
|
||||||
)
|
)
|
||||||
|
|
||||||
if 'bind' in body and body['bind']:
|
if 'bind' in body and body['bind']:
|
||||||
|
@ -121,7 +121,7 @@ class RegisterRestServlet(RestServlet):
|
|||||||
if LoginType.EMAIL_IDENTITY in result:
|
if LoginType.EMAIL_IDENTITY in result:
|
||||||
threepid = result[LoginType.EMAIL_IDENTITY]
|
threepid = result[LoginType.EMAIL_IDENTITY]
|
||||||
|
|
||||||
for reqd in ['medium', 'address', 'validatedAt']:
|
for reqd in ['medium', 'address', 'validated_at']:
|
||||||
if reqd not in threepid:
|
if reqd not in threepid:
|
||||||
logger.info("Can't add incomplete 3pid")
|
logger.info("Can't add incomplete 3pid")
|
||||||
else:
|
else:
|
||||||
@ -129,7 +129,7 @@ class RegisterRestServlet(RestServlet):
|
|||||||
user_id,
|
user_id,
|
||||||
threepid['medium'],
|
threepid['medium'],
|
||||||
threepid['address'],
|
threepid['address'],
|
||||||
threepid['validatedAt'],
|
threepid['validated_at'],
|
||||||
)
|
)
|
||||||
|
|
||||||
if 'bind_email' in params and params['bind_email']:
|
if 'bind_email' in params and params['bind_email']:
|
||||||
|
Loading…
Reference in New Issue
Block a user