From ea8975a312813f766a9cc5ad71d8461584d5c77f Mon Sep 17 00:00:00 2001 From: liwei Date: Tue, 24 Dec 2019 18:09:14 +0800 Subject: [PATCH] [VD] Cancel Auth if no proxy usrname/passwd Follow 5.0 spec, if proxy need login and no usrname/passwd, WRT will cancel auth not show popup for user to input usrname and passwd. Change-Id: Ie1851b745e75fb065d3d96bb22cc4c824f08f0b5 Signed-off-by: liwei --- wrt_app/src/web_application.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) mode change 100755 => 100644 wrt_app/src/web_application.js diff --git a/wrt_app/src/web_application.js b/wrt_app/src/web_application.js old mode 100755 new mode 100644 index 7680eae3..38efdabd --- a/wrt_app/src/web_application.js +++ b/wrt_app/src/web_application.js @@ -127,9 +127,12 @@ class WebApplication { usrname = proxyInfo.username; passwd = proxyInfo.password; } - } - if (usrname && passwd) { - callback(usrname, passwd); + if (usrname && passwd) { + callback(usrname, passwd); + } else { + console.log('Login, but usrname and passwd is empty!!!'); + callback(); + } } else { const id = ++self.pendingID; console.log(`Raising a login info request with id: ${id}`); -- 2.34.1