mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-24 04:31:13 -05:00
Fix orphaned password verification error
This commit is contained in:
@@ -48,9 +48,16 @@ export function PasswordVerificationDialog({
|
||||
const result = await reverifyPasswordAuth(email, password);
|
||||
|
||||
if (result.success) {
|
||||
toast.success("Password Verified!", {
|
||||
description: "Your password authentication has been activated.",
|
||||
});
|
||||
if (result.needsEmailConfirmation) {
|
||||
toast.success("Password Verified!", {
|
||||
description: "Check your email for a confirmation link to complete activation.",
|
||||
duration: 8000,
|
||||
});
|
||||
} else {
|
||||
toast.success("Password Verified!", {
|
||||
description: "Your password authentication has been activated.",
|
||||
});
|
||||
}
|
||||
onOpenChange(false);
|
||||
onSuccess();
|
||||
} else {
|
||||
|
||||
@@ -192,8 +192,12 @@ export function SecurityTab() {
|
||||
};
|
||||
|
||||
const handleVerificationSuccess = async () => {
|
||||
await loadIdentities();
|
||||
sonnerToast.success("Password authentication activated successfully!");
|
||||
// Don't reload identities immediately - user needs to confirm email first
|
||||
toast({
|
||||
title: "Email Confirmation Required",
|
||||
description: "Check your email and click the confirmation link to activate password authentication.",
|
||||
duration: 0, // Persistent
|
||||
});
|
||||
};
|
||||
|
||||
// Get connected accounts with identity data
|
||||
|
||||
Reference in New Issue
Block a user