mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-01 16:51:13 +00:00
Make sure user is logged in for site creation. Fixes #838
This commit is contained in:
parent
03045c2e04
commit
b655ee0c14
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