aboutsummaryrefslogtreecommitdiffstats
path: root/routes/users.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2020-05-29 17:33:10 -0700
committerAdam Soltys <[email protected]>2020-05-29 17:33:10 -0700
commit2b59255e7350c6e359263808b2af263ef374285a (patch)
tree7191e93df0301cf82356050f7d5c62eb5d2d2726 /routes/users.js
parent67aa0ec59889f5b0b2d90a96384cfcb7e58d7a07 (diff)
downloadcoinos-server-2b59255e7350c6e359263808b2af263ef374285a.tar.gz
coinos-server-2b59255e7350c6e359263808b2af263ef374285a.zip
private key sweep
Diffstat (limited to 'routes/users.js')
-rw-r--r--routes/users.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/users.js b/routes/users.js
index 61421edf..4c39ca07 100644
--- a/routes/users.js
+++ b/routes/users.js
@@ -110,7 +110,7 @@ app.post("/register", async (req, res) => {
delete challenge[ip];
let success, score;
- if (process.env.NODE_ENV === "production") {
+ if (prod) {
if (!token) return res.status(500).send("Missing captcha token");