1.2.2 • Published 1 year ago

c.imagecaptcha v1.2.2

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

c.captcha

C.Imagecaptcha alias. c.captcha is a Express Session based Captcha for your Website that uses Imageselection to verify a client being a human.

How to setup

  1. Install Package npm i c.imagecaptcha

  2. Setup Images for the Captcha to use

    2.1. Run: node .\node_modules\c.imagecaptcha\devtools\setup.server.js

    2.2. Use the Webinterface to Upload images, add a question and a correct Answer and submit.

  3. Add Code to use your Captcha

    3.1. Server-side

    const captcha = require('c.imagecaptcha').create();
    
    //express needs to be setup
    express.use('/c.captcha',express.static('dist'));
    
    app.post('/captcha/challenge',captcha.challenge);

    3.2. To Check if User is Verified: captcha.isVerified(req); (use this on server side)

    3.3. Client-Side

    <link rel="stylesheet" href="/c.captcha/cdotcaptcha.min.css" >
    
    <script type="application/javascript" src="/c.captcha/cdotcaptcha.min.js"></script>
    
    <div id="captcha"></div>
    
    <script>
    
    var c = new CdotCaptcha("captcha","/captcha/challenge");
    
    </script>

Go ahead and pop this in your porject :)

1.2.2

1 year ago

1.2.0

1 year ago

1.2.1

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.10

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago