diff options
| author | Adam Soltys <[email protected]> | 2020-05-18 16:55:07 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2020-05-18 17:19:47 -0700 |
| commit | 51c0bfdf0dbe30c8ec7d14a86249747978af2cbe (patch) | |
| tree | d6e013c5be20a0280247cf1350e26767d3f07609 | |
| parent | 6bdb3772bb4d67110a51ed1c4fefd88a7e7d9ecf (diff) | |
| download | coinos-server-51c0bfdf0dbe30c8ec7d14a86249747978af2cbe.tar.gz coinos-server-51c0bfdf0dbe30c8ec7d14a86249747978af2cbe.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 9a053034..de06975e 100644 --- a/routes/assets.js +++ b/routes/assets.js @@ -27,6 +27,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 }); |
