Module License: MIT
Added by: Sam Deering
Node.js sample for visualCaptcha. You can also see it live.
You need Node.js installed with npm.
To start the server on port 8282 (default), run the following command:
If you want to run the unit tests, use the following command:
visualCaptcha, since 5.0, uses an API for increased security and to become back-end-agnostic (that's why you can easily plug-in a Vanilla JS, AngularJS, or jQuery front-end without changing anything).
It expects the following routes to exist, which we've put in this sample, using Express (just to make it easier).
You are expected to have these routes in your implementation, but you can change them in visualCaptcha's front-end config.
This route will be the first route called by the front-end, which will generate and store session data.
howmanyis required, the number of images to generate.
This route will be called for each image, to get it and show it, by index.
indexis required, the index of the image you want to get.
This route will be called for the audio file, to get it and play it, either the mp3 or ogg file.
typeis optional, the audio file format defaults to
mp3, but can also be
This is just a sample route, where we post the form to, and where the visualCaptcha validation takes place.
MIT. Check the LICENSE file.
Module stats last updated: 2015-06-07 05:30:25