mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-20 17:31:13 -05:00
Fix Security Tab toast issues
This commit is contained in:
@@ -21,7 +21,7 @@ import {
|
|||||||
triggerOrphanedPasswordConfirmation
|
triggerOrphanedPasswordConfirmation
|
||||||
} from '@/lib/identityService';
|
} from '@/lib/identityService';
|
||||||
import type { UserIdentity, OAuthProvider } from '@/types/identity';
|
import type { UserIdentity, OAuthProvider } from '@/types/identity';
|
||||||
import { toast as sonnerToast } from 'sonner';
|
import { toast as sonnerToast } from '@/components/ui/sonner';
|
||||||
export function SecurityTab() {
|
export function SecurityTab() {
|
||||||
const { user } = useAuth();
|
const { user } = useAuth();
|
||||||
const { toast } = useToast();
|
const { toast } = useToast();
|
||||||
@@ -46,20 +46,6 @@ export function SecurityTab() {
|
|||||||
if (!hasPassword) {
|
if (!hasPassword) {
|
||||||
const isOrphaned = await hasOrphanedPassword();
|
const isOrphaned = await hasOrphanedPassword();
|
||||||
setShowOrphanedPasswordOption(isOrphaned);
|
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() {
|
|||||||
|
|
||||||
<Separator />
|
<Separator />
|
||||||
|
|
||||||
{/* Two-Factor Authentication */}
|
|
||||||
<div className="space-y-4">
|
|
||||||
|
|
||||||
|
|
||||||
{/* Two-Factor Authentication */}
|
{/* Two-Factor Authentication */}
|
||||||
<div className="space-y-4">
|
<div className="space-y-4">
|
||||||
<div className="flex items-center gap-2">
|
<div className="flex items-center gap-2">
|
||||||
@@ -405,7 +387,6 @@ export function SecurityTab() {
|
|||||||
|
|
||||||
<TOTPSetup />
|
<TOTPSetup />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<Separator />
|
<Separator />
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user