Pleroma v1.1.9-10-g42f76306+dev Pleroma.Captcha.Service behaviour View Source
Link to this section Summary
Link to this section Callbacks
Request new captcha from a captcha service.
Returns:
Type/Name of the service, the token to identify the captcha, the data of the answer and service-specific data to use the newly created captcha
Validated the provided captcha solution.
Arguments:
token
the captcha is associated withcaptcha
solution of the captcha to validateanswer_data
is the data needed to validate the answer (presumably encrypted)
Returns:
true
if captcha is valid, false
if not