Skip to content

Commit

Permalink
fix: add early return during account recovery if keys are incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
rohan-chaturvedi authored Oct 31, 2024
1 parent 2fedcd8 commit 3407620
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/app/[team]/recovery/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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!)
Expand Down

0 comments on commit 3407620

Please sign in to comment.