[#114] Stylistic adjustments.
[akkoma] / lib / pleroma / captcha / captcha_service.ex
index 907a73ad06477bdda81f40a2a3442f67b9ade15e..8d0b76f86340ef099e9a5d03b6b469a936514653 100644 (file)
@@ -20,4 +20,9 @@ defmodule Pleroma.Captcha.Service do
   `true` if captcha is valid, `false` if not
   """
   @callback validate(token :: String.t(), captcha :: String.t()) :: boolean
+
+  @doc """
+  This function is called periodically to clean up old captchas
+  """
+  @callback cleanup() :: :ok
 end