]> git.proxmox.com Git - mirror_novnc.git/blobdiff - core/rfb.js
Merge branch 'homogenize-credentials-testing' of https://github.com/lhchavez/noVNC
[mirror_novnc.git] / core / rfb.js
index 3390276c2ea2ea7450e9f2ea7399bcaca518b2bd..3b52c29f41bedca6efaef75fc95049e881f8cbf9 100644 (file)
@@ -1441,8 +1441,8 @@ export default class RFB extends EventTargetMixin {
 
         // negotiated Plain subtype, server waits for password
         if (this._rfbVeNCryptState == 4) {
-            if (!this._rfbCredentials.username ||
-                !this._rfbCredentials.password) {
+            if (this._rfbCredentials.username === undefined ||
+                this._rfbCredentials.password === undefined) {
                 this.dispatchEvent(new CustomEvent(
                     "credentialsrequired",
                     { detail: { types: ["username", "password"] } }));