From 993d419a53151d5d7250d7d78bdd004e7bc09ffd Mon Sep 17 00:00:00 2001 From: hrj Date: Thu, 1 Apr 2021 20:05:06 +0530 Subject: [PATCH] Created Creating your own CAPTCHA provider (markdown) --- Creating-your-own-CAPTCHA-provider.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Creating-your-own-CAPTCHA-provider.md diff --git a/Creating-your-own-CAPTCHA-provider.md b/Creating-your-own-CAPTCHA-provider.md new file mode 100644 index 0000000..1eda011 --- /dev/null +++ b/Creating-your-own-CAPTCHA-provider.md @@ -0,0 +1,9 @@ +* Implement the `ChallengeProvider` interface, 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 parameters + * `checkAnswer()` - check whether than answer is correct + * `configure()` - (optional) use the supplied configuration + * `supportedParameters` - (optional) a map of parameters and their accepted values + +* For inspiration, see the sample providers. `FilterChallenge` is simple and a good starting point. \ No newline at end of file