forked from mirrors/pronouns.cc
fix: don't log captcha responses
This commit is contained in:
parent
cf95e69349
commit
e8d9ccb1ac
2 changed files with 2 additions and 3 deletions
|
@ -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)
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue