Fix orphaned password verification error

This commit is contained in:
gpt-engineer-app[bot]
2025-10-14 15:50:45 +00:00
parent 71991f267b
commit 1f206ceecf
3 changed files with 48 additions and 16 deletions

View File

@@ -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 {