Abstract resuming the authentication
We now do this in multiple places, so make sure things are handled the same way in all cases.
This commit is contained in:
parent
8a7089c0c6
commit
05d68e118d
12
core/rfb.js
12
core/rfb.js
|
@ -402,7 +402,7 @@ export default class RFB extends EventTargetMixin {
|
|||
|
||||
sendCredentials(creds) {
|
||||
this._rfbCredentials = creds;
|
||||
setTimeout(this._initMsg.bind(this), 0);
|
||||
this._resumeAuthentication();
|
||||
}
|
||||
|
||||
sendCtrlAltDel() {
|
||||
|
@ -1661,7 +1661,7 @@ export default class RFB extends EventTargetMixin {
|
|||
this._rfbCredentials.ardCredentials = encrypted;
|
||||
this._rfbCredentials.ardPublicKey = clientPublicKey;
|
||||
|
||||
setTimeout(this._initMsg.bind(this), 0);
|
||||
this._resumeAuthentication();
|
||||
}
|
||||
|
||||
_negotiateTightUnixAuth() {
|
||||
|
@ -2052,6 +2052,14 @@ export default class RFB extends EventTargetMixin {
|
|||
}
|
||||
}
|
||||
|
||||
// Resume authentication handshake after it was paused for some
|
||||
// reason, e.g. waiting for a password from the user
|
||||
_resumeAuthentication() {
|
||||
// We use setTimeout() so it's run in its own context, just like
|
||||
// it originally did via the WebSocket's event handler
|
||||
setTimeout(this._initMsg.bind(this), 0);
|
||||
}
|
||||
|
||||
_handleSetColourMapMsg() {
|
||||
Log.Debug("SetColorMapEntries");
|
||||
|
||||
|
|
Loading…
Reference in New Issue