From 3be5077178ffa8ee02a8e0b0ebb003a43a3995d5 Mon Sep 17 00:00:00 2001 From: Chneemann Date: Mon, 12 Oct 2026 10:24:18 +0200 Subject: [PATCH] feat(auth): enhance login page accessibility and form error reset --- app/(auth)/login/page.tsx | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/app/(auth)/login/page.tsx b/app/(auth)/login/page.tsx index cb795b6..00a3491 100644 --- a/app/(auth)/login/page.tsx +++ b/app/(auth)/login/page.tsx @@ -1,6 +1,6 @@ /** * @file app/(auth)/login/page.tsx - * @description Client component providing a user login interface utilizing the auth service. + * @description Client component providing a user login interface utilizing the auth service and ActionButton. */ "use client"; @@ -25,6 +25,15 @@ export default function LoginPage() { "credentials" | "guest" | null >(null); + /** + * Clears active error state when user modifies input fields. + */ + const handleInputChange = () => { + if (error) { + setError(null); + } + }; + /** * Performs user authentication via email and password using the auth service. * Redirects to the summary page upon success or sets an error message on failure. @@ -125,7 +134,11 @@ export default function LoginPage() { )} -
+