diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/register.js | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/lib/register.js b/lib/register.js index 7502c626..23e20a72 100644 --- a/lib/register.js +++ b/lib/register.js @@ -12,34 +12,6 @@ register = async (user, ip, requireChallenge) => { user.password = await bcrypt.hash(user.password, 1); } - if (config.bitcoin) { - if (config.bitcoin.walletpass) - await bc.walletPassphrase(config.bitcoin.walletpass, 300); - - user.address = await bc.getNewAddress("", "bech32"); - addresses[user.address] = user.username; - } - - if (config.liquid) { - if (config.liquid.walletpass) - await lq.walletPassphrase(config.liquid.walletpass, 300); - - user.confidential = await lq.getNewAddress(); - user.liquid = (await lq.getAddressInfo(user.confidential)).unconfidential; - addresses[user.liquid] = user.username; - } - - if ( - requireChallenge && - (!challenge[ip] || - user.response.toLowerCase() !== challenge[ip].toLowerCase()) - ) { - l.info("failed challenge", ip, user.response, challenge[ip]); - throw new Error("Failed challenge"); - } - - delete challenge[ip]; - let countries = { CA: "CAD", US: "USD", |
