fix: don't log captcha responses

This commit is contained in:
Sam 2023-05-06 15:53:07 +02:00
parent cf95e69349
commit e8d9ccb1ac
Signed by: sam
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)) img, _, err := image.Decode(bytes.NewReader(rawData))
if err != nil { 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) resized := imaging.Fill(img, 512, 512, imaging.Center, imaging.Linear)

View file

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