view src/change_email2.html.luan @ 1:2776f06236b4

add source.html
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 11 Jul 2025 21:17:19 -0600
parents 8f4df159f06b
children
line wrap: on
line source

local Luan = require "luan:Luan.luan"
local error = Luan.error
local Html = require "luan:Html.luan"
local html_encode = Html.encode or 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 page_header = Shared.page_header or error()
local footer = Shared.footer or error()
local User = require "site:/lib/User.luan"


return function()
	local user = User.current_required()
	if user==nil then return end
	Io.stdout = Http.response.text_writer()
%>
<!doctype html>
<html lang="en">
	<head>
<%		head() %>
		<title>Link My Style</title>
	</head>
	<body>
		<div page>
<%			page_header() %>
			<div>
				<h1>Your email has been changed</h1>
				<a button big href="/">Continue to Link My Style</a>
			</div>
<%			footer() %>
		</form>
	</body>
</html>
<%
end