summaryrefslogtreecommitdiff
path: root/test/support/captcha_mock.ex
blob: 560d6c457425c9d8ec2d4964c18bedddc78dbbc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
defmodule Pleroma.Captcha.Mock do
  alias Pleroma.Captcha.Service
  @behaviour Service

  @impl Service
  def new(), do: %{type: :mock}

  @impl Service
  def validate(_token, _captcha), do: true

  @impl Service
  def cleanup(_token), do: true
end