captcha icon indicating copy to clipboard operation
captcha copied to clipboard

Distinguish between expired captchas and invalid submissions?

Open dasmithii opened this issue 10 years ago • 1 comments

It seems that there is no way to do this, though it would be helpful. I'd like to alert my users with "expired captcha" or "invalid captcha" instead of just reporting failure.

This is pretty minor, of course. By and large, this is a great package. Thanks for building and sharing. You've saved me quite a bit of effort/frustration/etc.

dasmithii avatar Feb 01 '15 06:02 dasmithii

Thank you for your kind words! Since Verify returns a bool, distinguishing between errors will either require changing the API (so I'd do this in the major version with other changes that will pop up) or creating a separate function (e.g. VerifyWithError or something). I think the former is better, so it will take some time.

dchest avatar Feb 01 '15 08:02 dchest