mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-24 08:51:16 -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 {
|
||||
|
||||
Reference in New Issue
Block a user