From 753ed241b6ca00daee2997d87605f2a046b21d6e Mon Sep 17 00:00:00 2001 From: Minei3oat Date: Fri, 3 Oct 2025 00:58:34 +0200 Subject: [PATCH 1/2] Clear password fields after submit --- frontend/src/App.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index a5a56ca..dced57b 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -92,6 +92,7 @@ function App() { } }).catch( err => setError(err.toString())) setLoadingBtn(false) + form.reset() } @@ -125,6 +126,7 @@ function App() { } }).catch( err => setError(err.toString())) setLoadingBtn(false) + form.reset() } From f3024cc9a871b9cee720763ded27791dd252ceb2 Mon Sep 17 00:00:00 2001 From: Minei3oat Date: Fri, 3 Oct 2025 00:58:55 +0200 Subject: [PATCH 2/2] Invalidate cache on login --- frontend/src/App.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index dced57b..49ba445 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -120,6 +120,7 @@ function App() { setLoadingBtn(true) await login(values).then(res => { if(!res){ + queryClient.invalidateQueries() setSystemStatus({...systemStatus, loggined:true}) }else{ setError("Login failed")