fix(core): Update dependencies and refactor registration process

This commit is contained in:
2024-10-04 15:43:36 +02:00
parent 629bf19845
commit 4deaafc3a2
18 changed files with 676 additions and 597 deletions
+9 -2
View File
@@ -15,11 +15,11 @@ export class IdpState {
}
// INSTANCE
public receptionUrl = 'https://reception.lossless.one/typedrequest';
public receptionUrl = window.location.origin;
public idpClient = new plugins.idpClient.IdpClient(this.receptionUrl);
public domtools: domtools.DomTools;
public mainStatePart: plugins.deesDomtools.plugins.smartstate.StatePart<'main', {
view: 'welcome' | 'login' | 'register';
view: 'welcome' | 'login' | 'register' | 'finishregistration';
}>
public async init() {
@@ -49,6 +49,13 @@ export class IdpState {
view: 'register',
})
});
this.domtools.router.on('/finishregistration', async () => {
await this.mainStatePart.setState({
...this.mainStatePart.getState(),
view: 'finishregistration',
})
});
this.domtools.router._handleRouteState();
}
}