forked from atums.world/backend
add login view password, make sure it checks if your logged in, vscode recommends exts
This commit is contained in:
parent
b40c1db189
commit
7ddd7fa7a1
5 changed files with 65 additions and 3 deletions
|
@ -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";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue