fixed bugs

This commit is contained in:
Janis M
2022-03-31 11:22:47 +02:00
parent e17109d13e
commit 6b4eb39283
5 changed files with 17 additions and 8 deletions

View File

@@ -532,7 +532,7 @@ app.post("/auth/login", notAuthenticatedHandler, (req, res) =>{
let username = req.body.username;
let password = req.body.password;
error = "" // Error message
let error = "" // Error message
mysql_handler.con.query(`SELECT * FROM users WHERE username = "${username}"`, function(err, result){ // Get user from database
if(err){ // If there is an error