From 5408976a072ee79df77499e2dfbc69c4cfd5d266 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Wed, 20 May 2020 18:22:59 +0200 Subject: Webbox: Fix auth popup on certain browsers --- plugins/webbox/html/webbox.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'plugins') diff --git a/plugins/webbox/html/webbox.js b/plugins/webbox/html/webbox.js index 9b3a486..54adeaf 100644 --- a/plugins/webbox/html/webbox.js +++ b/plugins/webbox/html/webbox.js @@ -321,17 +321,7 @@ function initMainpage() { } if (this.status == 401) { // login error: goto login page var authheader = this.getResponseHeader("WWW-Authenticate"); - var title = "Webbox"; - // For web servers with standard AUTH BASIC, triggering problems in - // client browsers, popping up the browser's "Authenticate" window - // but we want our own - if (authheader.startsWith("Basic realm=\"") && authheader.endsWith("\"")) { - title = authheader.substr(13, authheader.length - 14); - } else - // Fixed up Apache server - if (authheader.startsWith("SR_Basic realm=\"") && authheader.endsWith("\"")) { - title = authheader.substr(16, authheader.length - 17); - } + var title = "Webbox Login"; // enable logout function if logging in document.getElementById("logoutcommand").style.display = "table-row"; -- cgit v1.2.3