You've already forked matrix-js-sdk
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:
@@ -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 || "",
|
||||||
|
|||||||
Reference in New Issue
Block a user