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 @@