File: README.md

package info (click to toggle)
golang-github-dpapathanasiou-go-recaptcha 0.0~git20190121.be5090b-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 76 kB
  • sloc: makefile: 4
file content (23 lines) | stat: -rw-r--r-- 888 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
## Using this Example

[This](example.go) is a simple HTTP server which creates the reCaptcha form and tests the input.

Build the example after installing the recaptcha package:

```
go get github.com/dpapathanasiou/go-recaptcha
cd $GOPATH/src/github.com/dpapathanasiou/go-recaptcha/example
go build example.go
```

Run the server<sup>&#42;</sup> by invoking the executable:

```
./example <reCaptcha public key (aka Site key)> <reCaptcha private key (aka Secret key)>
```

You can access the page from http://localhost:9001/ in your browser.

For more information on client side setup and other configuration options, check the [official documentation](https://developers.google.com/recaptcha/intro).

 <sup>&#42;</sup> make sure ['localhost' is added to the list of domains allowed](https://developers.google.com/recaptcha/docs/domain_validation) for the site registered at reCaptcha.