From 367f0307b6dfd43f6c4525d1aac2759ce4c7686b Mon Sep 17 00:00:00 2001 From: glyph Date: Fri, 25 Mar 2022 09:19:28 +0200 Subject: [PATCH] autofocus password input --- peach-web/src/routes/authentication/login.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peach-web/src/routes/authentication/login.rs b/peach-web/src/routes/authentication/login.rs index f914e30..ae423b3 100644 --- a/peach-web/src/routes/authentication/login.rs +++ b/peach-web/src/routes/authentication/login.rs @@ -26,7 +26,7 @@ pub fn build_template(request: &Request) -> PreEscaped { div style="display: flex; flex-direction: column; margin-bottom: 1rem;" { (PreEscaped("")) label for="password" class="center label-small font-gray" style="width: 80%;" { "PASSWORD" } - input id="password" name="password" class="center input" type="password" title="Password for given username"; + input id="password" name="password" class="center input" type="password" title="Password for given username" autofocus; (PreEscaped("")) input id="loginUser" class="button button-primary center" title="Login" type="submit" value="Login"; div class="center-text" style="margin-top: 1rem;" {