From b07aaae8d635548f859fcc0573be00534a8759dc Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sun, 27 Jan 2019 20:37:13 +0100 Subject: Fixed bug with undefined passphrase --- public/scripts/chat.js | 1 + 1 file changed, 1 insertion(+) (limited to 'public') diff --git a/public/scripts/chat.js b/public/scripts/chat.js index a4bf74f..53b6e1d 100644 --- a/public/scripts/chat.js +++ b/public/scripts/chat.js @@ -134,6 +134,7 @@ async function evaluateKeyGeneration() { pinInput.init(async (pin, tryCount) => { try { if (await encryption.getId(await encryption.getPublic()) !== peerId) throw "Not verified!"; + passphrase = pin; await encryption.decryptPrivate(await encryption.getPrivate(), pin); chat() } catch (e) { // decrypting failed -- cgit v1.2.3