Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var hash = results[0].password;
- var hash = results.password;
- router.post('/', function(req, res, next) {
- var username = req.body.username;
- var password = req.body.password;
- db.query('SELECT * FROM user WHERE username = ?', [username], function (error, results, fields) {
- if (error) throw error;
- var hash = results[0].password;
- console.log(hash);
- });
- res.redirect('/');
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement