mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 00:44:49 -04:00
Dedicated error code for failed 3pid auth verification
This commit is contained in:
parent
0eb61a3d16
commit
03eb4adc6e
2 changed files with 4 additions and 1 deletions
|
@ -126,7 +126,9 @@ class ThreepidRestServlet(RestServlet):
|
|||
threepid = yield self.identity_handler.threepid_from_creds(threePidCreds)
|
||||
|
||||
if not threepid:
|
||||
raise SynapseError(400, "Failed to auth 3pid")
|
||||
raise SynapseError(
|
||||
400, "Failed to auth 3pid", Codes.THREEPID_AUTH_FAILED
|
||||
)
|
||||
|
||||
for reqd in ['medium', 'address', 'validatedAt']:
|
||||
if reqd not in threepid:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue