Merge branch 'develop' of https://git.pleroma.social/pleroma/pleroma into develop
[akkoma] / test / support / captcha_mock.ex
1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
4
5 defmodule Pleroma.Captcha.Mock do
6 alias Pleroma.Captcha.Service
7 @behaviour Service
8
9 @impl Service
10 def new, do: %{type: :mock}
11
12 @impl Service
13 def validate(_token, _captcha, _data), do: :ok
14 end