summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2021-03-11 16:47:35 +0100
committerPierre Ossman <ossman@cendio.se>2021-03-11 16:47:35 +0100
commit9ca337d3a805d241bf52071ade3d3bbff867bbcb (patch)
treec7ebe4b530ffaa76a30ccfadca99a441f39312d1
parent4c96d4b7bdfd36c01e2e414d2dceb3f836033950 (diff)
parent0c55c6475701b66c28c245483aeaf4d0179a3cca (diff)
downloadnovnc-9ca337d3a805d241bf52071ade3d3bbff867bbcb.tar.gz
Merge branch 'homogenize-credentials-testing' of https://github.com/lhchavez/noVNC
-rw-r--r--core/rfb.js4
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"] } }));