Merge branch 'homogenize-credentials-testing' of https://github.com/lhchavez/noVNC

This commit is contained in:
Pierre Ossman 2021-03-11 16:47:35 +01:00
commit 9ca337d3a8
1 changed files with 2 additions and 2 deletions

View 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"] } }));