Clean captchas up periodically, not schedule it after theyre created

This commit is contained in:
Ekaterina Vaartis 2018-12-16 23:41:11 +03:00
commit ef6829382a
4 changed files with 30 additions and 20 deletions

View file

@ -9,5 +9,5 @@ defmodule Pleroma.Captcha.Mock do
def validate(_token, _captcha), do: true
@impl Service
def cleanup(_token), do: true
def cleanup(), do: :ok
end