diff options
Diffstat (limited to 'public')
-rw-r--r-- | public/scripts/chat.js | 1 |
1 files changed, 1 insertions, 0 deletions
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 |