From 68d9662fe553bcddb413b05480c8b1cc024a6d0c Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 12 Apr 2017 18:36:23 +0100 Subject: [PATCH] Automatically complete dummy auth Dummy auth flows, bu definition, do not require a response from the user, and so should just be completed automatically by interactive-auth. --- src/interactive-auth.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/interactive-auth.js b/src/interactive-auth.js index c68972f1f..6ea98afdc 100644 --- a/src/interactive-auth.js +++ b/src/interactive-auth.js @@ -318,6 +318,13 @@ InteractiveAuth.prototype = { } this._currentStage = nextStage; + if (nextStage == 'm.login.dummy') { + this.submitAuthDict({ + type: 'm.login.dummy', + }); + return; + } + if (this._data.errcode || this._data.error) { this._stateUpdatedCallback(nextStage, { errcode: this._data.errcode || "",