added consent template

This commit is contained in:
ston1th 2022-07-10 01:19:28 +02:00
commit 3c3ca3e7a7
6 changed files with 31 additions and 6 deletions

View file

@ -87,7 +87,7 @@ type loginData struct {
type consentData struct {
ConsentChallenge string
Data *consentInfo
Info *consentInfo
}
func (c *Context) Exec() {
@ -132,7 +132,7 @@ func (c *Context) Exec() {
func (c *Context) accessLog() {
log := c.log.WithValues("addr", c.Request.RemoteAddr,
"method", c.Request.Method,
"url", c.Request.RequestURI,
"uri", c.Request.RequestURI,
"status", c.Status,
)
if c.Err != nil {
@ -184,7 +184,7 @@ func (c *Context) SetHeader(name, value string) {
func (c *Context) Redirect(uri string, code int) {
c.log.Info("access", "addr", c.Request.RemoteAddr,
"method", c.Request.Method,
"url", c.Request.RequestURI,
"uri", c.Request.RequestURI,
"status", code,
"redirect", uri,
)