Add comment to function

This commit is contained in:
Fluf 2018-05-24 22:17:26 -04:00 committed by GitHub
parent 55bbfac16d
commit 76b57f15a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,6 +25,7 @@ type Response struct {
const apiURL = "https://www.google.com/recaptcha/api/siteverify"
// Verify calls Google Recaptcha API to verify token
func Verify(response string) (bool, error) {
resp, err := http.PostForm(apiURL,
url.Values{"secret": {setting.Service.RecaptchaSecret}, "response": {response}})