compute mysecret after checking create() was successful
This commit is contained in:
parent
73201094b7
commit
c5016495e3
1 changed files with 1 additions and 2 deletions
|
|
@ -1131,11 +1131,10 @@ const register = async (alias, pass) => {
|
||||||
|
|
||||||
_isRegistering = false
|
_isRegistering = false
|
||||||
|
|
||||||
const mySecret = await mySEA.secret(user._.sea.epub, user._.sea)
|
|
||||||
|
|
||||||
if (typeof ack.err === 'string') {
|
if (typeof ack.err === 'string') {
|
||||||
throw new Error(ack.err)
|
throw new Error(ack.err)
|
||||||
} else if (typeof ack.pub === 'string') {
|
} else if (typeof ack.pub === 'string') {
|
||||||
|
const mySecret = await mySEA.secret(user._.sea.epub, user._.sea)
|
||||||
_currentAlias = alias
|
_currentAlias = alias
|
||||||
_currentPass = await mySEA.encrypt(pass, mySecret)
|
_currentPass = await mySEA.encrypt(pass, mySecret)
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue