From 963fd3472453873d2f461d755f6c783e4be54254 Mon Sep 17 00:00:00 2001 From: shoopea Date: Sun, 17 Nov 2024 23:42:22 +0100 Subject: [PATCH] csrf token --- http.go | 2 ++ version.go | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/http.go b/http.go index 57c306f..e658cf2 100644 --- a/http.go +++ b/http.go @@ -72,6 +72,7 @@ func HttpGetRecover(c *gin.Context) { log.WithFields(log.Fields{}).Debugf("starting") defer log.WithFields(log.Fields{}).Debugf("done") + SetCSRFToken(c) c.HTML(http.StatusOK, "page-recover.html", gin.H{}) } @@ -79,6 +80,7 @@ func HttpGetSignIn(c *gin.Context) { log.WithFields(log.Fields{}).Debugf("starting") defer log.WithFields(log.Fields{}).Debugf("done") + SetCSRFToken(c) c.HTML(http.StatusOK, "page-signin.html", gin.H{}) } diff --git a/version.go b/version.go index c7420c7..f0c4489 100644 --- a/version.go +++ b/version.go @@ -1,7 +1,7 @@ // Code generated by version.sh (@generated) DO NOT EDIT. package main -var githash = "060933a" +var githash = "a31ff56" var branch = "master" -var buildstamp = "2024-11-17_22:40:33" -var commits = "106" -var version = "060933a-b106 - 2024-11-17_22:40:33" +var buildstamp = "2024-11-17_22:42:14" +var commits = "107" +var version = "a31ff56-b107 - 2024-11-17_22:42:14"