From 8490359ea732332ad78c26803a58abe1efeeedb7 Mon Sep 17 00:00:00 2001 From: Adolfo Reyna Date: Fri, 3 Sep 2021 12:56:16 -0700 Subject: [PATCH] fix signup --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 7c002a4..4b0beb0 100644 --- a/index.js +++ b/index.js @@ -75,7 +75,7 @@ DB.getDB.then((DB)=>{ const profile = req.query.profile || req.body.profile; if(!username || !password || !email) return res.json({status: "fail"}) //const hashedPassword = await bcrypt.hash(password, 10); - const hashedPassword = await bcrypt.hash('12345', 10); + const hashedPassword = await bcrypt.hash(password, 10); const success = await DB.newUser({ username: username, email: email,