[VD] Cancel Auth if no proxy usrname/passwd 04/220904/1
authorliwei <wei90727.li@samsung.com>
Tue, 24 Dec 2019 10:09:14 +0000 (18:09 +0800)
committerliwei <wei90727.li@samsung.com>
Tue, 24 Dec 2019 10:09:14 +0000 (18:09 +0800)
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 <wei90727.li@samsung.com>
wrt_app/src/web_application.js [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index 7680eae..38efdab
@@ -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}`);