fix: don't log captcha responses

This commit is contained in:
Sam 2023-05-06 15:53:07 +02:00
parent cf95e69349
commit e8d9ccb1ac
No known key found for this signature in database
GPG Key ID: B4EF20DDE721CAA1
2 changed files with 2 additions and 3 deletions

View File

@ -43,7 +43,7 @@ func (db *DB) ConvertAvatar(data string) (
img, _, err := image.Decode(bytes.NewReader(rawData))
if err != nil {
return nil, nil, errors.Wrap(err, "decodign image")
return nil, nil, errors.Wrap(err, "decoding image")
}
resized := imaging.Fill(img, 512, 512, imaging.Center, imaging.Linear)

View File

@ -3,7 +3,6 @@ package auth
import (
"context"
"encoding/json"
"fmt"
"io"
"net/http"
"net/url"
@ -47,7 +46,7 @@ func (s *Server) verifyCaptcha(ctx context.Context, response string) (ok bool, e
if err != nil {
return false, errors.Wrap(err, "reading body")
}
fmt.Println(string(b))
var hr hcaptchaResponse
err = json.Unmarshal(b, &hr)
if err != nil {