From 20d0ebfcf4fd0b219a67abdb85c0c660f1c4b3f9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Julian=20M=C3=BCller?=
<9070224-W13R@users.noreply.gitlab.com>
Date: Tue, 5 Jul 2022 17:25:12 +0200
Subject: [PATCH 1/3] Swap x and 0 on pinpad (login overlay)
---
application/app/templates/registration/login.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/application/app/templates/registration/login.html b/application/app/templates/registration/login.html
index 14dc819..567d15d 100644
--- a/application/app/templates/registration/login.html
+++ b/application/app/templates/registration/login.html
@@ -45,8 +45,8 @@
|
- |
|
+ |
|
--
2.43.0
From f2725845cf2421463651f5f98dae929ef63ae1dc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Julian=20M=C3=BCller?=
<9070224-W13R@users.noreply.gitlab.com>
Date: Tue, 5 Jul 2022 17:42:50 +0200
Subject: [PATCH 2/3] hide the userlist in the background when showing the
password overlay
---
application/app/templates/registration/login.html | 2 +-
static/js/login.js | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/application/app/templates/registration/login.html b/application/app/templates/registration/login.html
index 567d15d..32b6ab0 100644
--- a/application/app/templates/registration/login.html
+++ b/application/app/templates/registration/login.html
@@ -64,7 +64,7 @@
{% translate "Choose your account" %}
-
+
{% for user_ in user_list %}
-
diff --git a/static/js/login.js b/static/js/login.js
index df54187..aea0630 100644
--- a/static/js/login.js
+++ b/static/js/login.js
@@ -5,11 +5,11 @@
let username_input;
let password_input;
let submit_button;
- let username_display;
let password_overlay;
let pw_overlay_cancel;
let userlist_buttons;
let pinpad_buttons;
+ let userlist_container;
// Add event listeners after DOM Content loaded
@@ -23,6 +23,7 @@
submit_button = document.getElementById("submit_login");
password_overlay = document.getElementById("passwordOverlayContainer");
pw_overlay_cancel = document.getElementById("pwoCancel");
+ userlist_container = document.getElementById("userlistContainer");
userlist_buttons = document.getElementsByClassName("userlistButton");
pinpad_buttons = document.getElementsByClassName("pinpadBtn");
@@ -59,15 +60,14 @@
window.scrollTo(0, 0);
password_overlay.classList.remove("nodisplay");
- document.body.classList.add("overflowHidden");
- //password_input.focus();
+ userlist_container.classList.add("nodisplay");
}
function hide_password_overlay() {
password_overlay.classList.add("nodisplay");
- document.body.classList.remove("overflowHidden");
+ userlist_container.classList.remove("nodisplay");
password_input.value = "";
}
--
2.43.0
From 117340683632d05fb9d7b838bd691049a012f8e4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Julian=20M=C3=BCller?=
<9070224-W13R@users.noreply.gitlab.com>
Date: Tue, 5 Jul 2022 17:43:34 +0200
Subject: [PATCH 3/3] Bump version to 11
---
lib/env.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/env.sh b/lib/env.sh
index d11c933..ba983e8 100644
--- a/lib/env.sh
+++ b/lib/env.sh
@@ -2,5 +2,5 @@
export DJANGO_SK_ABS_FP="$(pwd)/config/secret_key.txt"
export STATIC_FILES="$(pwd)/static/"
-export APP_VERSION="10"
+export APP_VERSION="11"
export PYTHONPATH="$(pwd)/packages/"
--
2.43.0