main
kry008 2025-01-08 08:46:34 +01:00
parent 47ce6c3229
commit efbef1133f
1 changed files with 0 additions and 1 deletions

View File

@ -25,7 +25,6 @@ api.use(bodyParser.json());
api.post("/loginPanel", function(req, res) { api.post("/loginPanel", function(req, res) {
var login = req.body.login; var login = req.body.login;
var password = req.body.password; var password = req.body.password;
console.log(req.body);
con.query("SELECT * FROM login WHERE login = ? AND haslo = SHA1(?)", [login, password], function(err, result) { con.query("SELECT * FROM login WHERE login = ? AND haslo = SHA1(?)", [login, password], function(err, result) {
//jeżeli znajdziesz wygeneruj token i zapamiętaj go w bazie //jeżeli znajdziesz wygeneruj token i zapamiętaj go w bazie