From 327c4b755fccf264953e15b01239d0e2a15f5ecb Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Tue, 31 Mar 2026 21:32:30 -0400 Subject: [PATCH] Redirect after login to allow refresh without browser prompt --- cgi-bin/malp.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cgi-bin/malp.rb b/cgi-bin/malp.rb index e567133..82212f2 100755 --- a/cgi-bin/malp.rb +++ b/cgi-bin/malp.rb @@ -61,7 +61,8 @@ if cgi.request_method == "POST" && !authenticated if check_credentials(username, password) token = create_session cookie = CGI::Cookie.new("name" => "MALP", "value" => token, "path" => "/") - authenticated = true + print cgi.header("Status" => "303 See Other", "Location" => ENV["REQUEST_URI"], "cookie" => cookie) + exit end end