From ee2423ed2b8df2955b470530409938a7fc63be5e Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Fri, 15 Feb 2019 10:25:50 +0100 Subject: [PATCH] Clean up RFB._rfb_auth_schema assignment --- kasmweb/core/rfb.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kasmweb/core/rfb.js b/kasmweb/core/rfb.js index e6427fd..d9d76e6 100644 --- a/kasmweb/core/rfb.js +++ b/kasmweb/core/rfb.js @@ -61,7 +61,7 @@ export default class RFB extends EventTargetMixin { // Internal state this._rfb_connection_state = ''; this._rfb_init_state = ''; - this._rfb_auth_scheme = ''; + this._rfb_auth_scheme = -1; this._rfb_clean_disconnect = true; // Server capabilities @@ -975,7 +975,6 @@ export default class RFB extends EventTargetMixin { Log.Debug("Server security types: " + types); // Look for each auth in preferred order - this._rfb_auth_scheme = 0; if (includes(1, types)) { this._rfb_auth_scheme = 1; // None } else if (includes(22, types)) {