diff options
author | Pierre Ossman <ossman@cendio.se> | 2021-03-11 16:47:35 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2021-03-11 16:47:35 +0100 |
commit | 9ca337d3a805d241bf52071ade3d3bbff867bbcb (patch) | |
tree | c7ebe4b530ffaa76a30ccfadca99a441f39312d1 /core | |
parent | 4c96d4b7bdfd36c01e2e414d2dceb3f836033950 (diff) | |
parent | 0c55c6475701b66c28c245483aeaf4d0179a3cca (diff) | |
download | novnc-9ca337d3a805d241bf52071ade3d3bbff867bbcb.tar.gz |
Merge branch 'homogenize-credentials-testing' of https://github.com/lhchavez/noVNC
Diffstat (limited to 'core')
-rw-r--r-- | core/rfb.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/rfb.js b/core/rfb.js index 3390276..3b52c29 100644 --- a/core/rfb.js +++ b/core/rfb.js @@ -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"] } })); |