From c4fd9c93a63bce7c322aec1fc304b4dc5ac5a9cd Mon Sep 17 00:00:00 2001 From: Rory& Date: Mon, 2 Jun 2025 10:12:34 +0200 Subject: Split authentication and authorization --- testFrontend/SafeNSound.Frontend/Pages/Auth.razor | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'testFrontend/SafeNSound.Frontend') diff --git a/testFrontend/SafeNSound.Frontend/Pages/Auth.razor b/testFrontend/SafeNSound.Frontend/Pages/Auth.razor index c58a996..7a9f5d1 100644 --- a/testFrontend/SafeNSound.Frontend/Pages/Auth.razor +++ b/testFrontend/SafeNSound.Frontend/Pages/Auth.razor @@ -7,12 +7,13 @@ Email (L? R):
Password (L, R): -
+
Type (R): (one of user|monitor|admin)
Randomise Register Login +Who Am I Delete

@@ -105,4 +106,16 @@ StateHasChanged(); } + private async Task WhoAmI() { + Result = null; + Exception = null; + try { + Result = await App.Client!.WhoAmI(); + } + catch (Exception ex) { + Exception = ex; + } + StateHasChanged(); + } + } \ No newline at end of file -- cgit 1.5.1