aboutsummaryrefslogtreecommitdiffstats
path: root/routes
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2021-01-13 15:46:53 -0800
committerAdam Soltys <[email protected]>2021-01-13 16:11:11 -0800
commit5cd96cc027be811116b147e0614aca39ce164c6b (patch)
treea9d7d9096bc4ea5bb7049500571e9641b50177d7 /routes
parenteb860d78b836d810f7c29d5587e17321adf20bef (diff)
downloadcoinos-server-5cd96cc027be811116b147e0614aca39ce164c6b.tar.gz
coinos-server-5cd96cc027be811116b147e0614aca39ce164c6b.zip
account locking mechanism
Diffstat (limited to 'routes')
-rw-r--r--routes/users.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/routes/users.js b/routes/users.js
index e7aec50e..c9d60585 100644
--- a/routes/users.js
+++ b/routes/users.js
@@ -157,6 +157,7 @@ app.post(
let token;
if (user.username !== username && exists) {
+ l.error("username taken", username, user.username, exists.username);
return res.status(500).send("Username taken");
} else {
sockets[username] = sockets[user.username];