From 46ec2df402a6609551ffca380b2ccb527b6d1c89 Mon Sep 17 00:00:00 2001 From: Skitsanos Date: Sat, 8 Aug 2020 17:51:30 +0300 Subject: [PATCH] polished signup.js --- foxx/signup/post.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/foxx/signup/post.js b/foxx/signup/post.js index 7ba000a..d467f8f 100644 --- a/foxx/signup/post.js +++ b/foxx/signup/post.js @@ -28,7 +28,7 @@ module.exports = { password: crypto.sha384(password) }).toArray()[0]; - res.send({result: 'ok', qr}); + res.send({result: qr._key}); } catch (e) { res.throw(409, 'User already exists');