parent
03045c2e04
commit
b8755f83d6
1 changed files with 3 additions and 0 deletions
|
@ -209,6 +209,9 @@ export class Setup extends Component<any, State> {
|
|||
let data = wsJsonToRes<LoginResponse>(msg, LoginResponse);
|
||||
this.setState({ userLoading: false });
|
||||
UserService.Instance.login(data);
|
||||
if (UserService.Instance.jwtInfo.isSome()) {
|
||||
this.setState({ doneRegisteringUser: true });
|
||||
}
|
||||
} else if (op == UserOperation.CreateSite) {
|
||||
window.location.href = "/";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue