go-captcha

command module
v0.0.0-...-b5ba530 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

README

Go-Captcha API

Server to generate and check captcha

This Captcha Generation is using "Inter Font© SIL OpenFontLicense 1.1"

Requirements

  • Redis Server

How to Use

As example, you can start the go-captcha API like that:

export API_PORT=10888
export API_BIND=0.0.0.0
export LOGLEVEL=debug
export REDIS_SERVER=localhost:6379

go run init.go app.go

If you want to generate a captcha:

curl -X GET localhost:10888/api/captcha/v0

It will give you as result a PNG File and in the HTTP Response Header a "sessiontoken". This token you have to add to your CaptchaCheck Request:

curl -H 'sessiontoken: <token>' -X POST localhost:10888/api/captcha/v0/<token>

Thats it! Pretty easy.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL