sydent icon indicating copy to clipboard operation
sydent copied to clipboard

POST /_matrix/identity/api/v1/validate/email/requestToken returns "success" key

Open anoadragon453 opened this issue 5 years ago • 2 comments

POST /_matrix/identity/api/v1/validate/email/requestToken returns a success key, which is not defined in the spec.

{
  "success": true,
  "sid": "702675865"
}

anoadragon453 avatar Aug 20 '19 09:08 anoadragon453

I still observe that today. Clients should ignore the success key, right?

bmarty avatar May 09 '20 16:05 bmarty

I still observe that today. Clients should ignore the success key, right?

Correct, seeing as Sydent will never return "success": false anyways :)

https://github.com/matrix-org/sydent/blob/feb0c7b6ebf5a7fa6d6ad8b47a4128fb43d5d375/sydent/http/servlets/emailservlet.py#L89-L92

anoadragon453 avatar May 11 '20 18:05 anoadragon453