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";
|
||||
|
||||
|
|
|
@ -30,9 +30,14 @@
|
|||
<input type="email" name="email" id="email" required placeholder="Enter your email">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="form-group password-group">
|
||||
<label for="password">Password</label>
|
||||
<input type="password" name="password" id="password" required placeholder="Enter your password">
|
||||
<div class="password-wrapper">
|
||||
<input type="password" name="password" id="password" required placeholder="Enter your password">
|
||||
<svg id="toggle-password" class="toggle-password" viewBox="0 0 24 24">
|
||||
<path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zm0 13c-3.03 0-5.5-2.47-5.5-5.5s2.47-5.5 5.5-5.5 5.5 2.47 5.5 5.5-2.47 5.5-5.5 5.5zm0-9a3.5 3.5 0 100 7 3.5 3.5 0 000-7z"/>
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-footer">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue