Disable VNC password, fix bug when running inside Kasm VDI

This commit is contained in:
matt
2020-10-29 19:24:59 +00:00
parent 531705c05c
commit 28d19cd556
2 changed files with 15 additions and 14 deletions

View File

@@ -1068,17 +1068,8 @@ export default class RFB extends EventTargetMixin {
_negotiate_std_vnc_auth() {
if (this._sock.rQwait("auth challenge", 16)) { return false; }
/* Empty passwords are allowed in VNC and since we use HTTPS basic auth, wich is superior, lets allow the bypass of the vnc password
if (!this._rfb_credentials.password) {
this.dispatchEvent(new CustomEvent(
"credentialsrequired",
{ detail: { types: ["password"] } }));
return false;
}
*/
if (!this._rfb_credentials.password) {
this._rfb_credentials.password = "";
}
// KasmVNC uses basic Auth, clear the VNC password, which is not used
this._rfb_credentials.password = "";
// TODO(directxman12): make genDES not require an Array
const challenge = Array.prototype.slice.call(this._sock.rQshiftBytes(16));