Something more minor typo fixes to authrecall

This commit is contained in:
mhelander 2018-01-29 20:47:26 +02:00
parent fa8882b66a
commit 6fd2c0c1fa

5
sea.js
View File

@ -538,7 +538,7 @@
const { epub } = at.put
// Success! we've found our private data!
err = null
return { pub, priv, epriv, epub }
return { proof, pub, priv, epriv, epub }
} catch (e) {
err = 'Failed to decrypt private key!'
return
@ -552,6 +552,9 @@
// now we have AES decrypted the private key,
// if we were successful, then that means we're logged in!
try {
const { proof } = key
delete key.proof
await updatestorage(proof, key, pin)(args)
const user = Object.assign(key, { at, proof })