1 defmodule Pleroma.Captcha.Service do
4 Request new captcha from a captcha service.
8 Service-specific data for using the newly created captcha
10 @callback new() :: map
13 Validated the provided captcha solution.
16 * `token` the captcha is associated with
17 * `captcha` solution of the captcha to validate
21 `true` if captcha is valid, `false` if not
23 @callback validate(token :: String.t, captcha :: String.t) :: boolean