fix(core): Update dependencies and refactor registration process
This commit is contained in:
+9
-2
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user