projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'runtime-static-plug' into 'develop'
[akkoma]
/
lib
/
pleroma
/
captcha
/
captcha_service.ex
diff --git
a/lib/pleroma/captcha/captcha_service.ex
b/lib/pleroma/captcha/captcha_service.ex
index 907a73ad06477bdda81f40a2a3442f67b9ade15e..8d0b76f86340ef099e9a5d03b6b469a936514653 100644
(file)
--- a/
lib/pleroma/captcha/captcha_service.ex
+++ b/
lib/pleroma/captcha/captcha_service.ex
@@
-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