captcha_mock.ex 242 Bytes
Newer Older
vaartis's avatar
vaartis committed
1
2
3
4
5
6
7
8
9
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
vaartis's avatar
vaartis committed
10
11

  @impl Service
12
  def cleanup(), do: :ok
vaartis's avatar
vaartis committed
13
end