From 6e3371514e6aa9ca965b9258e13d7a345a2b0e16 Mon Sep 17 00:00:00 2001 From: MaddoScientisto Date: Tue, 17 Mar 2026 20:08:02 +0100 Subject: [PATCH] Refactor authentication system to use username instead of email; implement change password functionality and logging; add NLog for logging support --- Components/Layout/NavMenu.razor | 2 +- Components/Pages/ChangePassword.razor | 33 +++++ Components/Pages/Login.razor | 8 +- Configuration/SingleUserOptions.cs | 4 +- Program.cs | 153 ++++++++++++++++++++-- Services/Auth/AuthUser.cs | 6 +- Services/Auth/CouchbaseLiteAuthService.cs | 90 +++++++++---- Services/Auth/IAuthService.cs | 4 +- Services/Auth/SingleUserSeedService.cs | 2 +- WorkTracker.csproj | 8 ++ appsettings.json | 4 +- nlog.config | 18 +++ 12 files changed, 287 insertions(+), 45 deletions(-) create mode 100644 Components/Pages/ChangePassword.razor create mode 100644 nlog.config diff --git a/Components/Layout/NavMenu.razor b/Components/Layout/NavMenu.razor index 6bbd778..3e899d2 100644 --- a/Components/Layout/NavMenu.razor +++ b/Components/Layout/NavMenu.razor @@ -28,7 +28,7 @@