From 9c663973b0056749e49e249cacb86671a201836a Mon Sep 17 00:00:00 2001 From: padreug Date: Thu, 30 Oct 2025 17:30:16 +0100 Subject: [PATCH] Implements user login and registration Replaces the demo login page with a dedicated login and registration component. This allows users to create accounts and log in, enabling authentication features. Simplify Login, remove registration for now Adds a login page with username and password fields. Includes input validation, loading state, error handling, and a success message after successful login. Registration has been temporarily disabled. --- src/app.ts | 2 +- src/pages/Login.vue | 170 +++++++++++++++++++++++++++++ src/pages/LoginDemo.vue | 231 ---------------------------------------- 3 files changed, 171 insertions(+), 232 deletions(-) create mode 100644 src/pages/Login.vue delete mode 100644 src/pages/LoginDemo.vue diff --git a/src/app.ts b/src/app.ts index 5ee12b8..459283e 100644 --- a/src/app.ts +++ b/src/app.ts @@ -60,7 +60,7 @@ export async function createAppInstance() { { path: '/login', name: 'login', - component: () => import('./pages/LoginDemo.vue'), + component: () => import('./pages/Login.vue'), meta: { requiresAuth: false } }, // Pre-register module routes diff --git a/src/pages/Login.vue b/src/pages/Login.vue new file mode 100644 index 0000000..1d04f16 --- /dev/null +++ b/src/pages/Login.vue @@ -0,0 +1,170 @@ + + + diff --git a/src/pages/LoginDemo.vue b/src/pages/LoginDemo.vue deleted file mode 100644 index f90aaa7..0000000 --- a/src/pages/LoginDemo.vue +++ /dev/null @@ -1,231 +0,0 @@ - - -