aboutsummaryrefslogtreecommitdiffstats
path: root/routes
diff options
context:
space:
mode:
Diffstat (limited to 'routes')
-rw-r--r--routes/users.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/routes/users.js b/routes/users.js
index d0232eb4..d6dc68a7 100644
--- a/routes/users.js
+++ b/routes/users.js
@@ -202,6 +202,7 @@ app.post(
hex
});
emit(req.user.username, "key", key);
+ res.send(key);
})
);
@@ -364,7 +365,7 @@ app.post(
user = pick(user, ...whitelist);
res.send({ user, token });
} catch (e) {
- // l.error("login error", e.message);
+ l.error("login error", e.message);
res.status(401).end();
}
})