Booth Wiki Booth Wiki
Pages

api/authenticate

Returns a json notice response, if the account details passed are valid.

URL:

Formats:

  • json

HTTP Method:

  • POST

Parameters:

  • login - login to test
  • password - password to test: the clear-text password, the stored credential hash verbatim, or the md5 hash of that stored hash. (Hashing the password itself with md5 will not work.)

  • token - optional; when present, a token is included in the response.

Response:

{"result":"Valid","type":"notice"}
  • with token:
{"result":"Valid","type":"notice","token":"<md5 hash of stored credentials>"}
  • or:
{"result":"Invalid login or password","type":"error"}