Add a configurable auto-cleanup for captchas
This commit is contained in:
parent
2e72d49e37
commit
6062885df6
5 changed files with 31 additions and 2 deletions
|
|
@ -12,6 +12,7 @@ config :pleroma, Pleroma.Repo, types: Pleroma.PostgresTypes
|
|||
|
||||
config :pleroma, Pleroma.Captcha,
|
||||
enabled: false,
|
||||
minutes_retained: 5,
|
||||
method: Pleroma.Captcha.Kocaptcha
|
||||
|
||||
config :pleroma, Pleroma.Captcha.Kocaptcha, endpoint: "http://localhost:9093"
|
||||
|
|
|
|||
|
|
@ -167,6 +167,7 @@ Web Push Notifications configuration. You can use the mix task `mix web_push.gen
|
|||
## Pleroma.Captcha
|
||||
* `enabled`: Whether the captcha should be shown on registration
|
||||
* `method`: The method/service to use for captcha
|
||||
* `minutes_retained`: The time in minutes for which the captcha is valid (stored in the cache)
|
||||
|
||||
### Pleroma.Captcha.Kocaptcha
|
||||
Kocaptcha is a very simple captcha service with a single API endpoint,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue