From 283eb1a00504872188ce01ee5ee0d038550e9327 Mon Sep 17 00:00:00 2001
From: Bryce Kwon
Date: Sat, 7 Nov 2026 15:00:46 -1000
Subject: Check the form is there where a message is not
The checks that a forged session is not taken for a signed-in visitor,
and that https brings no warning, would also have passed on the page
saying logins are unavailable.
---
tests/extensions/test-auth.lua | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
(limited to 'tests/extensions/test-auth.lua')
diff --git a/tests/extensions/test-auth.lua b/tests/extensions/test-auth.lua
index ac849c6..e52b406 100644
--- a/tests/extensions/test-auth.lua
+++ b/tests/extensions/test-auth.lua
@@ -478,6 +478,7 @@ h.contains("a visitor signed in without access is told so", out,
"You are signed in but have no access to this repository.
")
h.check("and can still sign in as someone else", way_back_in(out) ~= nil)
out = run_action("body", { cookie = session_name .. "=" .. forged })
+h.contains("a visitor with a forged session is still shown the form", out, "
")
h.check("and is still there to fill in", way_back_in(out) ~= nil)
out = run_action("body", {})
+h.contains("over https the form is shown", out, "