Skip to content

Commit

Permalink
Merge pull request #128 from SH5H/fixError
Browse files Browse the repository at this point in the history
Fix login runtime error
  • Loading branch information
vmatsiiako authored Dec 21, 2022
2 parents fdcf2dd + 6ed8f8a commit 2bd9f4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/components/utilities/attemptLogin.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ const attemptLogin = async (
async () => {
const clientPublicKey = client.getPublicKey();

const { serverPublicKey, salt } = await login1(email, clientPublicKey);

try {
const { serverPublicKey, salt } = await login1(email, clientPublicKey);

client.setSalt(salt);
client.setServerPublicKey(serverPublicKey);
const clientProof = client.getProof(); // called M1
Expand Down

0 comments on commit 2bd9f4e

Please sign in to comment.