From 6053cb982f254f2d52b2a043864a999c725240f7 Mon Sep 17 00:00:00 2001 From: NGPixel Date: Sat, 29 Aug 2026 04:12:49 -0400 Subject: [PATCH] fix: improve login UI + error/success messages --- backend/locales/en.json | 3 +- backend/models/settings.ts | 2 +- frontend/src/components/AuthLoginPanel.vue | 236 +++++++++++------- .../src/components/shared/WLoadingOverlay.vue | 32 ++- frontend/src/composables/loading.js | 55 +++- frontend/src/pages/AdminExtensions.vue | 4 +- frontend/src/pages/AdminMail.vue | 1 + frontend/src/pages/Login.vue | 75 ++++++ 8 files changed, 309 insertions(+), 99 deletions(-) diff --git a/backend/locales/en.json b/backend/locales/en.json index 3105920b1..6900b497d 100644 --- a/backend/locales/en.json +++ b/backend/locales/en.json @@ -1344,6 +1344,7 @@ "auth.forgotPasswordLoading": "Requesting password reset...", "auth.forgotPasswordSubtitle": "Enter your email address to receive the instructions to reset your password:", "auth.forgotPasswordSuccess": "Check your emails for password reset instructions!", + "auth.forgotPasswordSuccessTitle": "Password reset requested", "auth.forgotPasswordTitle": "Forgot your password", "auth.genericError": "Authentication is unavailable.", "auth.invalidEmail": "Email address is invalid.", @@ -1388,7 +1389,7 @@ "auth.tfaSetupSuccess": "2FA enabled successfully on your account.", "auth.tfaSetupTitle": "Your administrator has required Two-Factor Authentication (2FA) to be enabled on your account.", "auth.tfaSetupVerifying": "Verifying...", - "auth.verifyEmail.instructions": "Confirm that this email address is yours to activate your account:", + "auth.verifyEmail.instructions": "Finish activating your account by clicking the button below to confirm:", "auth.verifyEmail.loading": "Confirming your email address...", "auth.verifyEmail.proceed": "Confirm Email Address", "auth.verifyEmail.success": "Your email address has been confirmed. You can now log in.", diff --git a/backend/models/settings.ts b/backend/models/settings.ts index eef32dc35..2eb33be36 100644 --- a/backend/models/settings.ts +++ b/backend/models/settings.ts @@ -96,7 +96,7 @@ class Settings { value: { senderName: '', senderEmail: '', - defaultBaseURL: 'https://wiki.example.com', + defaultBaseURL: '', host: '', port: 465, name: '', diff --git a/frontend/src/components/AuthLoginPanel.vue b/frontend/src/components/AuthLoginPanel.vue index 0f74ec8b9..a8218fe9f 100644 --- a/frontend/src/components/AuthLoginPanel.vue +++ b/frontend/src/components/AuthLoginPanel.vue @@ -1,5 +1,19 @@