1 defmodule Pleroma.Captcha.Service do
3 Request new captcha from a captcha service.
7 Service-specific data for using the newly created captcha
12 Validated the provided captcha solution.
15 * `token` the captcha is associated with
16 * `captcha` solution of the captcha to validate
17 * `answer_data` is the data needed to validate the answer (presumably encrypted)
21 `true` if captcha is valid, `false` if not
25 captcha :: String.t(),
26 answer_data :: String.t()
27 ) :: :ok | {:error, String.t()}