From 6ed8f8af08d94ac1348ba162bd0aee1951abbdcd Mon Sep 17 00:00:00 2001 From: seunghyunOh Date: Sun, 18 Dec 2022 15:50:13 +0900 Subject: [PATCH] Fix login runtime error --- frontend/components/utilities/attemptLogin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/components/utilities/attemptLogin.js b/frontend/components/utilities/attemptLogin.js index 228f58727b..188e038027 100644 --- a/frontend/components/utilities/attemptLogin.js +++ b/frontend/components/utilities/attemptLogin.js @@ -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