Updated email input fields to username id and name

This commit is contained in:
Sahat Yalkabov
2013-12-05 23:24:12 -05:00
parent 1ddd639592
commit 44a985f838
3 changed files with 4 additions and 2 deletions

View File

@@ -33,6 +33,8 @@ exports.getLogin = function(req, res) {
*/
exports.postLogin = function(req, res, next) {
passport.authenticate('local', function(err, user, info) {
console.log(user)
console.log(info)
if (err) return next(err);
if (!user) {
req.flash('messages', info.message);