OpenFolia

Email me a code

POST
/auth/email-code/request

When an active person has this address, emails them a six-digit code and a link that signs in, valid CCMS_EMAIL_CODE_MINUTES (default 10) minutes, once; a new code revokes the earlier one. Always 202 with the same answer, at once, so neither the answer nor its time says whether the address is known. Recorded as user.email-code-requested. Each request counts against the client’s address and toward the address’s code requests (CCMS_PASSWORD_FAILURES_*, apart from its tries and from passwords).

Request Body

application/vnd.api+json
  1. body
data*

Response Body

application/vnd.api+json
  1. response
meta*
Example Request
curl -X POST 'http://localhost:3000/auth/email-code/request' \  -H 'Content-Type: application/vnd.api+json' \  -d '{  "data": {    "type": "EmailCodeRequest",    "attributes": {      "email": "string"    }  }}'
Example Response
{  "meta": {    "message": "string"  }}