From 5e9efbe35d6b4056ad13e073d98f2efa56161db3 Mon Sep 17 00:00:00 2001 From: Rohan Chaturvedi Date: Thu, 31 Oct 2024 15:36:24 +0530 Subject: [PATCH] fix: add early return during account recovery if keys are incorrect (#385) --- frontend/app/[team]/recovery/page.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/app/[team]/recovery/page.tsx b/frontend/app/[team]/recovery/page.tsx index 081df7d3b..8f151e72a 100644 --- a/frontend/app/[team]/recovery/page.tsx +++ b/frontend/app/[team]/recovery/page.tsx @@ -79,6 +79,7 @@ export default function Recovery({ params }: { params: { team: string } }) { if (accountKeyRing.publicKey !== org?.identityKey) { toast.error('Incorrect account recovery key!') reject('Incorrect account recovery key') + return; } const deviceKey = await deviceVaultKey(pw, session?.user?.email!)