2
Creating your own CAPTCHA provider
hrj edited this page 2021-04-01 20:07:45 +05:30
-
Currently, you need to compile and implement the Provider within a fork of the framework itself. In the future, it will be possible to compile providers separately and install them as a plugin.
-
For inspiration, see the sample providers.
FilterChallengeis simple and a good starting point. -
Implement the
ChallengeProviderinterface, which contains these methods:getId()- needs to return a string that will be used to identify the provider itself.returnChallenge()- needs to return a new CAPTCHA challenge, for the configured parameterscheckAnswer()- check whether than answer is correctconfigure()- (optional) use the supplied configurationsupportedParameters- (optional) a map of parameters and their accepted values