view src/logout.html.luan @ 45:2d4f00755092

bcode editor work
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 13 Nov 2022 22:07:18 -0700
parents fc3ee39d7764
children
line wrap: on
line source

local Luan = require "luan:Luan.luan"
local error = Luan.error
local Io = require "luan:Io.luan"
local Http = require "luan:http/Http.luan"
local Shared = require "site:/lib/Shared.luan"
local head = Shared.head or error()
local header = Shared.header or error()
local footer = Shared.footer or error()
local Forum = require "site:/lib/Forum.luan"
local forum_title = Forum.title or error()


return function()
	Http.response.remove_cookie("user")
	Http.response.remove_cookie("password")
	Http.request.cookies.user = nil
	Http.request.cookies.password = nil
	Io.stdout = Http.response.text_writer()
%>
<!doctype html>
<html>
	<head>
<%		head() %>
		<title><%=forum_title%> - Logout</title>
	</head>
	<body>
<%		header() %>
		<div content>
			<h1>Logout</h1>

			<p>You have been logged out.</p>
		</div>
<%		footer() %>
	</body>
</html>
<%
end