removed fmt
This commit is contained in:
parent
69df101cb8
commit
261ebed165
1 changed files with 0 additions and 3 deletions
|
|
@ -6,7 +6,6 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
|
||||||
"html/template"
|
"html/template"
|
||||||
"net/http"
|
"net/http"
|
||||||
"strconv"
|
"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) {
|
func (c *Context) Consent(challenge string) (ci *consentInfo, err error) {
|
||||||
fmt.Println(challenge)
|
|
||||||
req := c.Srv.API.AdminApi.GetConsentRequest(context.Background()).
|
req := c.Srv.API.AdminApi.GetConsentRequest(context.Background()).
|
||||||
ConsentChallenge(challenge)
|
ConsentChallenge(challenge)
|
||||||
_, resp, err := req.Execute()
|
_, resp, err := req.Execute()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println(err)
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
defer resp.Body.Close()
|
defer resp.Body.Close()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue