diff options
| author | Adam Soltys <[email protected]> | 2020-05-18 16:55:07 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2020-05-18 16:55:07 -0700 |
| commit | 2071680468ddfae1029321f265bacb84a0e0b4a9 (patch) | |
| tree | 769701b9656dd1152ea20c0c5c0fa5e33d5dc5fe | |
| parent | 6273b8dbd54534f17019caf78ab9db1286f5b66b (diff) | |
| download | coinos-server-2071680468ddfae1029321f265bacb84a0e0b4a9.tar.gz coinos-server-2071680468ddfae1029321f265bacb84a0e0b4a9.zip | |
move variable declaration
| -rw-r--r-- | routes/assets.js | 2 | ||||
| -rw-r--r-- | routes/users.js | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/routes/assets.js b/routes/assets.js index fa5788da..c873ccaf 100644 --- a/routes/assets.js +++ b/routes/assets.js @@ -26,6 +26,8 @@ app.post("/assets", auth, async (req, res) => { const domain = "adamsoltys.com"; const version = 0; + l.info("token address", token_address); + const contract = { entity: { domain }, issuer_pubkey, diff --git a/routes/users.js b/routes/users.js index 0ba91178..4e510d63 100644 --- a/routes/users.js +++ b/routes/users.js @@ -85,10 +85,10 @@ app.post("/register", async (req, res) => { let ip = req.headers["x-forwarded-for"] || req.connection.remoteAddress; + let success, score; if (process.env.NODE_ENV === "production") { if (!token) return res.status(500).send("Missing captcha token"); - let success, score; try { const url = `https://www.google.com/recaptcha/api/siteverify?secret=${config.captcha}&response=${token}&remoteip=${ip}`; let captcha = await axios.post(url, { timeout: 1000 }); |
