mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2025-01-26 20:06:30 +00:00
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);
|
let data = wsJsonToRes<LoginResponse>(msg, LoginResponse);
|
||||||
this.setState({ userLoading: false });
|
this.setState({ userLoading: false });
|
||||||
UserService.Instance.login(data);
|
UserService.Instance.login(data);
|
||||||
|
if (UserService.Instance.jwtInfo.isSome()) {
|
||||||
|
this.setState({ doneRegisteringUser: true });
|
||||||
|
}
|
||||||
} else if (op == UserOperation.CreateSite) {
|
} else if (op == UserOperation.CreateSite) {
|
||||||
window.location.href = "/";
|
window.location.href = "/";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue