From 0828ac12b1d2e0bbbe8445f18b12927b9c3f067e Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Fri, 4 Feb 2022 17:25:15 +0530 Subject: [PATCH] Fix params --- src/matrix/registration/Registration.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/matrix/registration/Registration.ts b/src/matrix/registration/Registration.ts index a0b4eb89..c9c9af87 100644 --- a/src/matrix/registration/Registration.ts +++ b/src/matrix/registration/Registration.ts @@ -105,9 +105,9 @@ export class Registration { private _createRegistrationStage(type: string, session: string, params?: RegistrationParams) { switch (type) { case "m.login.dummy": - return new DummyAuth(session, params); + return new DummyAuth(session, params?.[type]); case "m.login.terms": - return new TermsAuth(session, params); + return new TermsAuth(session, params?.[type]); default: throw new Error(`Unknown stage: ${type}`); }