csrf token

This commit is contained in:
shoopea 2024-11-17 23:42:22 +01:00
parent a31ff56055
commit 963fd34724
2 changed files with 6 additions and 4 deletions

View File

@ -72,6 +72,7 @@ func HttpGetRecover(c *gin.Context) {
log.WithFields(log.Fields{}).Debugf("starting") log.WithFields(log.Fields{}).Debugf("starting")
defer log.WithFields(log.Fields{}).Debugf("done") defer log.WithFields(log.Fields{}).Debugf("done")
SetCSRFToken(c)
c.HTML(http.StatusOK, "page-recover.html", gin.H{}) c.HTML(http.StatusOK, "page-recover.html", gin.H{})
} }
@ -79,6 +80,7 @@ func HttpGetSignIn(c *gin.Context) {
log.WithFields(log.Fields{}).Debugf("starting") log.WithFields(log.Fields{}).Debugf("starting")
defer log.WithFields(log.Fields{}).Debugf("done") defer log.WithFields(log.Fields{}).Debugf("done")
SetCSRFToken(c)
c.HTML(http.StatusOK, "page-signin.html", gin.H{}) c.HTML(http.StatusOK, "page-signin.html", gin.H{})
} }

View File

@ -1,7 +1,7 @@
// Code generated by version.sh (@generated) DO NOT EDIT. // Code generated by version.sh (@generated) DO NOT EDIT.
package main package main
var githash = "060933a" var githash = "a31ff56"
var branch = "master" var branch = "master"
var buildstamp = "2024-11-17_22:40:33" var buildstamp = "2024-11-17_22:42:14"
var commits = "106" var commits = "107"
var version = "060933a-b106 - 2024-11-17_22:40:33" var version = "a31ff56-b107 - 2024-11-17_22:42:14"