1
0
This commit is contained in:
Neil Johnson
2019-09-24 23:06:11 +01:00
committed by Neil Johnson
parent 7e0087449f
commit c76a0669dd
+2 -4
View File
@@ -435,7 +435,7 @@ class AuthHandler(BaseHandler):
@defer.inlineCallbacks
def _check_threepid(self, medium, authdict, **kwargs):
print('_check_threepid')
print("_check_threepid")
if "threepid_creds" not in authdict:
raise LoginError(400, "Missing threepid_creds", Codes.MISSING_PARAM)
@@ -483,9 +483,7 @@ class AuthHandler(BaseHandler):
# Valid threepid returned, delete from the db
yield self.store.delete_threepid_session(threepid_creds["sid"])
else:
raise SynapseError(
400, "Email is not enabled on this homeserver"
)
raise SynapseError(400, "Email is not enabled on this homeserver")
else:
raise SynapseError(400, "Unrecognized threepid medium: %s" % (medium,))
if not threepid: