Poprawka
parent
47ce6c3229
commit
efbef1133f
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue