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() {
<>