diff --git a/pkg/server/handler.go b/pkg/server/handler.go index 097d411..42a5a29 100644 --- a/pkg/server/handler.go +++ b/pkg/server/handler.go @@ -259,11 +259,12 @@ func consentHandler(ctx *Context) { if !ctx.CheckXsrf() { return } - consent := ctx.Form("consent") + // TODO html form + approved := true var err error rdr := root - if consent == "approve" { + if approved { rdr, err = ctx.ApproveConsent(data.ConsentChallenge) if err != nil { ctx.Error(err) diff --git a/pkg/server/templates/consent.html b/pkg/server/templates/consent.html index 9543359..4663a64 100644 --- a/pkg/server/templates/consent.html +++ b/pkg/server/templates/consent.html @@ -13,8 +13,8 @@