From a1dee07d76a0b5e4a70afbf024607a0522419aad Mon Sep 17 00:00:00 2001 From: thelastWallE <12502210+thelastWallE@users.noreply.github.com> Date: Tue, 26 Oct 2021 16:37:25 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9BLogin:=20Refocus=20on=20username=20?= =?UTF-8?q?after=20failed=20login=20(#4249)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #4242 Co-authored-by: Gina Häußge --- AUTHORS.md | 1 + src/octoprint/static/js/login/login.js | 1 + 2 files changed, 2 insertions(+) diff --git a/AUTHORS.md b/AUTHORS.md index 8c6e18395..bf9ba451f 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -152,6 +152,7 @@ date of first contribution): * [Adam DeMuri](https://github.com/ademuri) * [Daniel Shenkle](https://github.com/DShenkle) * [Bryan Kenote](https://github.com/bryankenote) + * [Sven Samoray](https://github.com/thelastWallE) OctoPrint started off as a fork of [Cura](https://github.com/daid/Cura) by [Daid Braam](https://github.com/daid). Parts of its communication layer and diff --git a/src/octoprint/static/js/login/login.js b/src/octoprint/static/js/login/login.js index b79f8f89a..afc60e873 100644 --- a/src/octoprint/static/js/login/login.js +++ b/src/octoprint/static/js/login/login.js @@ -39,6 +39,7 @@ $(function () { .fail(function () { usernameElement.val(""); passwordElement.val(""); + usernameElement.focus(); overlayElement.removeClass("in"); errorElement.addClass("in");