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
20 `true` if captcha is valid, `false` if not
22 @callback validate(token :: String.t(), captcha :: String.t()) :: boolean
25 This function is called periodically to clean up old captchas
27 @callback cleanup() :: :ok