1 defmodule Pleroma.Captcha.Service do
3 Request new captcha from a captcha service.
7 Type/Name of the service, the token to identify the captcha,
8 the data of the answer and service-specific data to use the newly created captcha
17 Validated the provided captcha solution.
20 * `token` the captcha is associated with
21 * `captcha` solution of the captcha to validate
22 * `answer_data` is the data needed to validate the answer (presumably encrypted)
26 `true` if captcha is valid, `false` if not
30 captcha :: String.t(),
32 ) :: :ok | {:error, String.t()}