Neuer commit

This commit is contained in:
Marc Wieland
2025-10-14 13:12:43 +02:00
parent 77ef3ff591
commit 789d44a344
58 changed files with 146 additions and 58 deletions

View File

@@ -1,8 +1,10 @@
@page "/login"
@using OnProfNext.Client.Services
@using OnProfNext.Shared.Models
@inject HttpClient Http
@inject NavigationManager Nav
@inject IJSRuntime JS
@inject AuthService AuthService
<h3>Anmeldung</h3>
@@ -45,8 +47,8 @@
}
var result = await response.Content.ReadFromJsonAsync<LoginResponse>();
await JS.InvokeVoidAsync("localStorage.setItem", "authToken", result!.Token);
await AuthService.LoginAsync(result!.Token);
Nav.NavigateTo("/users");
}
catch