diff options
Diffstat (limited to 'core/rfb.js')
-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 e3786cb..05a5979 100644 --- a/core/rfb.js +++ b/core/rfb.js @@ -1427,8 +1427,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"] } })); |