fix signup
This commit is contained in:
2
index.js
2
index.js
@@ -75,7 +75,7 @@ DB.getDB.then((DB)=>{
|
|||||||
const profile = req.query.profile || req.body.profile;
|
const profile = req.query.profile || req.body.profile;
|
||||||
if(!username || !password || !email) return res.json({status: "fail"})
|
if(!username || !password || !email) return res.json({status: "fail"})
|
||||||
//const hashedPassword = await bcrypt.hash(password, 10);
|
//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({
|
const success = await DB.newUser({
|
||||||
username: username,
|
username: username,
|
||||||
email: email,
|
email: email,
|
||||||
|
|||||||
Reference in New Issue
Block a user