mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
Fix params
This commit is contained in:
parent
b59f916824
commit
0828ac12b1
@ -105,9 +105,9 @@ export class Registration {
|
|||||||
private _createRegistrationStage(type: string, session: string, params?: RegistrationParams) {
|
private _createRegistrationStage(type: string, session: string, params?: RegistrationParams) {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case "m.login.dummy":
|
case "m.login.dummy":
|
||||||
return new DummyAuth(session, params);
|
return new DummyAuth(session, params?.[type]);
|
||||||
case "m.login.terms":
|
case "m.login.terms":
|
||||||
return new TermsAuth(session, params);
|
return new TermsAuth(session, params?.[type]);
|
||||||
default:
|
default:
|
||||||
throw new Error(`Unknown stage: ${type}`);
|
throw new Error(`Unknown stage: ${type}`);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user