Add comment to function
This commit is contained in:
parent
55bbfac16d
commit
76b57f15a6
|
|
@ -25,6 +25,7 @@ type Response struct {
|
||||||
|
|
||||||
const apiURL = "https://www.google.com/recaptcha/api/siteverify"
|
const apiURL = "https://www.google.com/recaptcha/api/siteverify"
|
||||||
|
|
||||||
|
// Verify calls Google Recaptcha API to verify token
|
||||||
func Verify(response string) (bool, error) {
|
func Verify(response string) (bool, error) {
|
||||||
resp, err := http.PostForm(apiURL,
|
resp, err := http.PostForm(apiURL,
|
||||||
url.Values{"secret": {setting.Service.RecaptchaSecret}, "response": {response}})
|
url.Values{"secret": {setting.Service.RecaptchaSecret}, "response": {response}})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user