added consent check

This commit is contained in:
ston1th 2022-07-10 01:27:46 +02:00
commit 8874df02d2

View file

@ -259,12 +259,11 @@ func consentHandler(ctx *Context) {
if !ctx.CheckXsrf() {
return
}
// TODO html form
approved := true
consent := ctx.Form("consent")
var err error
rdr := root
if approved {
if consent == "approve" {
rdr, err = ctx.ApproveConsent(data.ConsentChallenge)
if err != nil {
ctx.Error(err)