From 1c4b1a457f2f39cf128a49dc21c404331aed559c Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Tue, 14 Oct 2025 16:53:52 +0000 Subject: [PATCH] Fix Security Tab toast issues --- src/components/settings/SecurityTab.tsx | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/src/components/settings/SecurityTab.tsx b/src/components/settings/SecurityTab.tsx index a3389575..122a28c0 100644 --- a/src/components/settings/SecurityTab.tsx +++ b/src/components/settings/SecurityTab.tsx @@ -21,7 +21,7 @@ import { triggerOrphanedPasswordConfirmation } from '@/lib/identityService'; import type { UserIdentity, OAuthProvider } from '@/types/identity'; -import { toast as sonnerToast } from 'sonner'; +import { toast as sonnerToast } from '@/components/ui/sonner'; export function SecurityTab() { const { user } = useAuth(); const { toast } = useToast(); @@ -46,20 +46,6 @@ export function SecurityTab() { if (!hasPassword) { const isOrphaned = await hasOrphanedPassword(); setShowOrphanedPasswordOption(isOrphaned); - - if (isOrphaned) { - sonnerToast.info("Password Authentication Needs Activation", { - description: "Click 'Send Confirmation Email' below to complete your password setup.", - duration: 10000, - }); - } - - if (isOrphaned) { - sonnerToast.info("Password Authentication Needs Activation", { - description: "Click 'Verify Password Access' to complete your password setup.", - duration: 10000, - }); - } } }; @@ -392,10 +378,6 @@ export function SecurityTab() { - {/* Two-Factor Authentication */} -
- - {/* Two-Factor Authentication */}
@@ -405,7 +387,6 @@ export function SecurityTab() {
-