🐛Login: Refocus on username after failed login (#4249)

Fixes #4242

Co-authored-by: Gina Häußge <gina@octoprint.org>
This commit is contained in:
thelastWallEandGina Häußge authored and GitHub committed 2021-10-26 16:37:25 +02:00
1 parent f8f4225e8d
commit a1dee07d76
2 files changed
+2

No files matched your search

+1
View File
@@ -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
+1
View File
@@ -39,6 +39,7 @@ $(function () {
.fail(function () {
usernameElement.val("");
passwordElement.val("");
usernameElement.focus();
overlayElement.removeClass("in");
errorElement.addClass("in");