mirror of
https://github.com/DerTyp7/shop-ejs-expressjs.git
synced 2025-10-29 20:42:10 +01:00
fixed bugs
This commit is contained in:
2
index.js
2
index.js
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user