From e8dc566824625f43cd53929992528253114e4262 Mon Sep 17 00:00:00 2001 From: Turtle <104490184+CodingTurtle2@users.noreply.github.com> Date: Sat, 3 Jan 2026 11:07:14 +0100 Subject: [PATCH] g4.4 --- auth.js | 3 +++ lib/basic.js | 2 +- student/uebersicht.html | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/auth.js b/auth.js index 706829c..1edf50d 100644 --- a/auth.js +++ b/auth.js @@ -1,3 +1,6 @@ +const debug = false; + + const couchdb_username = "admin"; const couchdb_password = "admin"; diff --git a/lib/basic.js b/lib/basic.js index 838ea2e..49d1f49 100644 --- a/lib/basic.js +++ b/lib/basic.js @@ -351,7 +351,7 @@ function form1(string) { async function getUserData(couchDB) { let username = getURLArgsMap()["user"]; if (!username) { - if (typeof (debug_username) == "string") { + if (debug && typeof (debug_username) == "string") { username = debug_username; } else { return null; diff --git a/student/uebersicht.html b/student/uebersicht.html index 4bcb5db..75d59e3 100644 --- a/student/uebersicht.html +++ b/student/uebersicht.html @@ -191,6 +191,7 @@