!7
p {
serveHttpAndOpenBrowser();
}
html {
S cookie = serveHttp_cookieHandling();
if (nempty(params.get("showform")))
ret standaloneWebAuth_showForm();
Pair p = standaloneWebAuth(cookie, params.get("pw"));
if (nempty(p.a)) ret p.a;
ret p.b ? p("Authed")
: p("Not authed") + standaloneWebAuth_showForm();
}