mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
inally last bugfix for now for alias & PIN authrecall
This commit is contained in:
parent
89988c3800
commit
e75854b73e
5
sea.js
5
sea.js
@ -557,9 +557,10 @@
|
||||
|
||||
const user = Object.assign(key, { at, proof })
|
||||
const pIN = newPin || pin
|
||||
const pinProp = pIN && Buffer.from(pIN, 'base64').toString('utf8')
|
||||
|
||||
return await finalizelogin(alias, user, root, { pin: newPin || pin })
|
||||
const pinProp = pIN && { pin: Buffer.from(pIN, 'base64').toString('utf8') }
|
||||
|
||||
return await finalizelogin(alias, user, root, pinProp)
|
||||
} catch (e) { // TODO: right log message ?
|
||||
Gun.log('Failed to finalize login with new password!')
|
||||
const { err = '' } = e || {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user