mirror of
https://github.com/novnc/noVNC.git
synced 2026-05-26 15:13:34 +00:00
Merge branch 'homogenize-credentials-testing' of https://github.com/lhchavez/noVNC
This commit is contained in:
@@ -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"] } }));
|
||||
|
||||
Reference in New Issue
Block a user