[#114] Email confirmation route, action, node setting, User.Info fields.
[akkoma] / lib / pleroma / captcha / captcha_service.ex
index ae1d6e7c715a0f71bc66eb8e31501ac3fc272784..8d0b76f86340ef099e9a5d03b6b469a936514653 100644 (file)
@@ -1,5 +1,4 @@
 defmodule Pleroma.Captcha.Service do
-
   @doc """
   Request new captcha from a captcha service.
 
@@ -20,5 +19,10 @@ defmodule Pleroma.Captcha.Service do
 
   `true` if captcha is valid, `false` if not
   """
-  @callback validate(token :: String.t, captcha :: String.t) :: boolean
+  @callback validate(token :: String.t(), captcha :: String.t()) :: boolean
+
+  @doc """
+  This function is called periodically to clean up old captchas
+  """
+  @callback cleanup() :: :ok
 end