From 6a38521d743f233daa77fc92b733429cd6e10fde Mon Sep 17 00:00:00 2001 From: Will Norris Date: Wed, 23 Apr 2025 06:18:40 -0700 Subject: [PATCH] remove XSRF input from templates As of #177, we are now using Sec-Fetch-Site instead of xsrf tokens. Updates #178 Change-Id: Ia101a4a3005adb9118051b3416f5a64a4a45987d Signed-off-by: Will Norris --- flake.nix | 2 +- tmpl/delete.html | 1 - tmpl/detail.html | 2 -- tmpl/home.html | 1 - 4 files changed, 1 insertion(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index 0589cd6..d07f35b 100644 --- a/flake.nix +++ b/flake.nix @@ -39,7 +39,7 @@ "-X tailscale.com/version.longStamp=${tsVersion}" "-X tailscale.com/version.shortStamp=${tsVersion}" ]; - vendorHash = "sha256-RqKsIgwkCbIMQdCKtSHqW9eiZuNcZLCYeXFhPbgxjEU="; # SHA based on vendoring go.mod + vendorHash = "sha256-PUobfmZyn5YtiFTpxTtjnPhqijR5tsONk4HNlIs1oNk="; # SHA based on vendoring go.mod }; }); diff --git a/tmpl/delete.html b/tmpl/delete.html index b84edc4..144049d 100644 --- a/tmpl/delete.html +++ b/tmpl/delete.html @@ -4,7 +4,6 @@

Link {{go}}/{{.Short}} Deleted

Deleted this by mistake? You can recreate the same link below.

-
diff --git a/tmpl/detail.html b/tmpl/detail.html index 95adb19..f7c3ccb 100644 --- a/tmpl/detail.html +++ b/tmpl/detail.html @@ -3,7 +3,6 @@

Link Details

{{ if .Editable }} -
@@ -33,7 +32,6 @@

Link Details

Danger Zone

- diff --git a/tmpl/home.html b/tmpl/home.html index 1e39b81..c7a10cf 100644 --- a/tmpl/home.html +++ b/tmpl/home.html @@ -8,7 +8,6 @@

Create a new link

Did you mean {{.}} ? Create a {{go}} link for it now:

{{ end }}
-