diff options
| author | Adam Soltys <[email protected]> | 2020-05-18 17:18:30 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2020-05-18 17:19:48 -0700 |
| commit | 9e48fc0d52a49f9e7c0931eaba3dd429f8b9b0e8 (patch) | |
| tree | 0c2e28aaf7b8fb887e65b8071378c0ba8c0b15e0 | |
| parent | 4440c37dd8d4d4c547e15ba58c74abe3aa1d7555 (diff) | |
| download | coinos-server-9e48fc0d52a49f9e7c0931eaba3dd429f8b9b0e8.tar.gz coinos-server-9e48fc0d52a49f9e7c0931eaba3dd429f8b9b0e8.zip | |
log in register function
| -rw-r--r-- | routes/users.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/routes/users.js b/routes/users.js index 4e510d63..d677b275 100644 --- a/routes/users.js +++ b/routes/users.js @@ -63,9 +63,11 @@ app.post("/register", async (req, res) => { let { token } = user; if (!user.username) return err("Username required"); + l.info("registering user"); let exists = await db.User.count({ where: { username: user.username } }); if (exists) return err("Username taken"); + l.info("setting bitcoin addresses"); if (config.bitcoin) { if (config.bitcoin.walletpass) await bc.walletPassphrase(config.bitcoin.walletpass, 300); @@ -74,6 +76,7 @@ app.post("/register", async (req, res) => { addresses[user.address] = user.username; } + l.info("setting liquid addresses"); if (config.liquid) { if (config.liquid.walletpass) await lq.walletPassphrase(config.liquid.walletpass, 300); |
