[frontend] fix build

This commit is contained in:
Lilian 2024-05-15 20:07:31 +02:00
parent 727a4dfe88
commit 6abc8d80de
No known key found for this signature in database
GPG key ID: 007CA12D692829E1

View file

@ -12,7 +12,7 @@
<input <input
@bind="@Username"/> @bind="@Username"/>
<input type="password" required="required" <input type="password" required="required"
@bind="@Password"/> @bind="@Password"/>
<button @onclick="Submit" disabled="@Loading">Login</button> <button @onclick="Submit" disabled="@Loading">Login</button>
</div> </div>
@if (Loading) @if (Loading)
@ -58,7 +58,8 @@
BannerUrl = res.User.BannerUrl, BannerUrl = res.User.BannerUrl,
InstanceName = res.User.InstanceName, InstanceName = res.User.InstanceName,
InstanceIconUrl = res.User.InstanceIconUrl, InstanceIconUrl = res.User.InstanceIconUrl,
Token = res.Token! Token = res.Token!,
Host = res.User.Host
}); });
SessionService.SetSession(res.User.Id); SessionService.SetSession(res.User.Id);
Navigation.NavigateTo("/"); Navigation.NavigateTo("/");