From 8985e1cb35907295cf065c2381fd4eaf63cfb30f Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 17 Jul 2025 17:37:01 +0100 Subject: [PATCH] Allow the TOTP token to be sent in the render URL --- cookbooks/tile/templates/default/export.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/tile/templates/default/export.erb b/cookbooks/tile/templates/default/export.erb index 4466524e2..573a222b4 100644 --- a/cookbooks/tile/templates/default/export.erb +++ b/cookbooks/tile/templates/default/export.erb @@ -180,7 +180,7 @@ if 'HTTP_REFERER' not in os.environ: if '_osm_totp_token' in cookies: token = cookies['_osm_totp_token'].value else: - token = None + token = form.getfirst("token") # Get the load average cputimes = [float(n) for n in open("/proc/stat").readline().rstrip().split()[1:-1]] -- 2.39.5