Skip to content

Instantly share code, notes, and snippets.

View enio-dev's full-sized avatar
🤒
Out sick

Enio Ribeiro enio-dev

🤒
Out sick
View GitHub Profile
@enio-dev
enio-dev / passport.js
Created July 13, 2017 19:20 — forked from manjeshpv/passport.js
Passport.js using MySQL for Authentication with Express
// config/passport.js
// load all the things we need
var LocalStrategy = require('passport-local').Strategy;
var mysql = require('mysql');
var connection = mysql.createConnection({
host : 'localhost',
user : 'root',