added consent check
This commit is contained in:
parent
2f913e40b8
commit
8874df02d2
1 changed files with 2 additions and 3 deletions
|
|
@ -259,12 +259,11 @@ func consentHandler(ctx *Context) {
|
||||||
if !ctx.CheckXsrf() {
|
if !ctx.CheckXsrf() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// TODO html form
|
consent := ctx.Form("consent")
|
||||||
approved := true
|
|
||||||
|
|
||||||
var err error
|
var err error
|
||||||
rdr := root
|
rdr := root
|
||||||
if approved {
|
if consent == "approve" {
|
||||||
rdr, err = ctx.ApproveConsent(data.ConsentChallenge)
|
rdr, err = ctx.ApproveConsent(data.ConsentChallenge)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
ctx.Error(err)
|
ctx.Error(err)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue