Redirect after login to allow refresh without browser prompt

This commit is contained in:
Josh Holtrop 2026-03-31 21:32:30 -04:00
parent bf530217f3
commit 327c4b755f

View File

@ -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