removed fmt

This commit is contained in:
ston1th 2022-07-10 01:52:29 +02:00
commit 261ebed165

View file

@ -6,7 +6,6 @@ import (
"context"
"encoding/json"
"errors"
"fmt"
"html/template"
"net/http"
"strconv"
@ -375,12 +374,10 @@ func (c *Context) RejectConsent(challenge string) (rdr string, err error) {
}
func (c *Context) Consent(challenge string) (ci *consentInfo, err error) {
fmt.Println(challenge)
req := c.Srv.API.AdminApi.GetConsentRequest(context.Background()).
ConsentChallenge(challenge)
_, resp, err := req.Execute()
if err != nil {
fmt.Println(err)
return
}
defer resp.Body.Close()