diff options
Diffstat (limited to 'server.js')
| -rw-r--r-- | server.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -59,11 +59,11 @@ app.post("/api/password/signin", async (req, res) => { } const [users] = await con.query( - "SELECT * FROM users WHERE email = ?",g + "SELECT * FROM users WHERE email = ?", [email] ); - if (users.length == 0) { + if (users == null) { return res.status(200).send("User does not exist"); } const passwordMatch = bcrypt.compareSync(password, users.password); |
