From f791f2b17d6b11946c92c3afd369288e9860f8c9 Mon Sep 17 00:00:00 2001 From: Aurora Lahtela <24460436+AuroraLS3@users.noreply.github.com> Date: Fri, 16 Sep 2022 13:34:47 +0300 Subject: [PATCH] Fix login and register on old frontend when using a locale --- Plan/common/src/main/resources/assets/plan/web/login.html | 6 +++--- .../common/src/main/resources/assets/plan/web/register.html | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Plan/common/src/main/resources/assets/plan/web/login.html b/Plan/common/src/main/resources/assets/plan/web/login.html index 061589014..d6f5bbed7 100644 --- a/Plan/common/src/main/resources/assets/plan/web/login.html +++ b/Plan/common/src/main/resources/assets/plan/web/login.html @@ -37,7 +37,7 @@ if (user.length > 50) { return displayError('Username can be up to 50 characters, yours is ' + user.length); } - const password = $('#inputPassword').val(); + const password = $('#inputPass').val(); if (!password || password.length < 1) { return displayError('You need to specify a Password'); } @@ -46,7 +46,7 @@ if (error.includes("HTTP 403")) { location.reload(); } - $('#inputPassword').val(""); + $('#inputPass').val(""); return displayError('Login failed: ' + error); } if (json && json.success) { @@ -93,7 +93,7 @@