Merge branch 'homogenize-credentials-testing' of https://github.com/lhchavez/noVNC
This commit is contained in:
commit
9ca337d3a8
|
@ -1441,8 +1441,8 @@ export default class RFB extends EventTargetMixin {
|
||||||
|
|
||||||
// negotiated Plain subtype, server waits for password
|
// negotiated Plain subtype, server waits for password
|
||||||
if (this._rfbVeNCryptState == 4) {
|
if (this._rfbVeNCryptState == 4) {
|
||||||
if (!this._rfbCredentials.username ||
|
if (this._rfbCredentials.username === undefined ||
|
||||||
!this._rfbCredentials.password) {
|
this._rfbCredentials.password === undefined) {
|
||||||
this.dispatchEvent(new CustomEvent(
|
this.dispatchEvent(new CustomEvent(
|
||||||
"credentialsrequired",
|
"credentialsrequired",
|
||||||
{ detail: { types: ["username", "password"] } }));
|
{ detail: { types: ["username", "password"] } }));
|
||||||
|
|
Loading…
Reference in New Issue