Remove old access secret mechanics code
This commit is contained in:
parent
27276be53f
commit
cbf40449fc
1 changed files with 0 additions and 14 deletions
|
|
@ -409,20 +409,6 @@ const server = program => {
|
|||
})
|
||||
}
|
||||
|
||||
if (process.env.ALLOW_UNLOCKED_LND === 'true') {
|
||||
const codes = await Storage.valuesWithKeyMatch(
|
||||
/^UnlockedAccessSecrets\//u
|
||||
)
|
||||
if (codes.length === 0) {
|
||||
const code = ECC.generateRandomString(12)
|
||||
await Storage.setItem(`UnlockedAccessSecrets/${code}`, false)
|
||||
await Storage.setItem(`FirstAccessSecret`, code)
|
||||
logger.info('the access code is:' + code)
|
||||
} else if (codes.length === 1 && codes[0] === false) {
|
||||
const firstCode = await Storage.getItem('FirstAccessSecret')
|
||||
logger.info('the access code is:' + firstCode)
|
||||
}
|
||||
}
|
||||
serverInstance.listen(serverPort, serverHost)
|
||||
logger.info('App listening on ' + serverHost + ' port ' + serverPort)
|
||||
// @ts-expect-error
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue