1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00

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.
This commit is contained in:
David Baker
2017-04-12 18:36:23 +01:00
parent 4f0987da01
commit 68d9662fe5

View File

@@ -318,6 +318,13 @@ InteractiveAuth.prototype = {
} }
this._currentStage = nextStage; this._currentStage = nextStage;
if (nextStage == 'm.login.dummy') {
this.submitAuthDict({
type: 'm.login.dummy',
});
return;
}
if (this._data.errcode || this._data.error) { if (this._data.errcode || this._data.error) {
this._stateUpdatedCallback(nextStage, { this._stateUpdatedCallback(nextStage, {
errcode: this._data.errcode || "", errcode: this._data.errcode || "",