add login view password, make sure it checks if your logged in, vscode recommends exts

This commit is contained in:
creations 2025-03-18 23:24:06 -04:00
parent b40c1db189
commit 7ddd7fa7a1
Signed by: creations
GPG key ID: 8F553AA4320FC711
5 changed files with 65 additions and 3 deletions

View file

@ -7,7 +7,9 @@ const routeDef: RouteDef = {
returns: "text/html",
};
async function handler(): Promise<Response> {
async function handler(request: ExtendedRequest): Promise<Response> {
if (request.session) return Response.redirect("/");
const instanceName: string =
(await getSetting("instance_name")) || "Unnamed Instance";