added consent template
This commit is contained in:
parent
f48fa210bb
commit
3c3ca3e7a7
6 changed files with 31 additions and 6 deletions
|
|
@ -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,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue