From a4fd02bc58ce251b51aef0a69375ee3ccaa828de Mon Sep 17 00:00:00 2001
From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com>
Date: Mon, 27 Oct 2025 11:24:52 +0000
Subject: [PATCH] fixes and remove unused
---
frontend/src/components/shared/FirstLoginModal.tsx | 3 +--
frontend/src/routes/Landing.tsx | 8 --------
2 files changed, 1 insertion(+), 10 deletions(-)
diff --git a/frontend/src/components/shared/FirstLoginModal.tsx b/frontend/src/components/shared/FirstLoginModal.tsx
index 61314579c..935fa4ac1 100644
--- a/frontend/src/components/shared/FirstLoginModal.tsx
+++ b/frontend/src/components/shared/FirstLoginModal.tsx
@@ -10,7 +10,6 @@ import { useAuth } from '../../auth/UseSession';
interface FirstLoginModalProps {
opened: boolean;
- onPasswordChanged: () => void;
username: string;
}
@@ -20,7 +19,7 @@ interface FirstLoginModalProps {
* Forces first-time users to change their password.
* Cannot be dismissed until password is successfully changed.
*/
-export default function FirstLoginModal({ opened, onPasswordChanged, username }: FirstLoginModalProps) {
+export default function FirstLoginModal({ opened, username }: FirstLoginModalProps) {
const { t } = useTranslation();
const navigate = useNavigate();
const { signOut } = useAuth();
diff --git a/frontend/src/routes/Landing.tsx b/frontend/src/routes/Landing.tsx
index c4ba3a21d..8ac05d7e8 100644
--- a/frontend/src/routes/Landing.tsx
+++ b/frontend/src/routes/Landing.tsx
@@ -46,13 +46,6 @@ export default function Landing() {
checkFirstLogin()
}, [session, config])
- const handlePasswordChanged = async () => {
- // After password change, backend logs out the user
- // Refresh session to detect logout and redirect to login
- setIsFirstLogin(false) // Close modal first
- await refreshSession()
- // The auth system will automatically redirect to login when session is null
- }
console.log('[Landing] State:', {
pathname: location.pathname,
@@ -87,7 +80,6 @@ export default function Landing() {
<>