banned users cant login, show error messages on failed logins

This commit is contained in:
Baris Usakli
2013-08-14 15:49:56 -04:00
parent 9ad82f4907
commit 74af205426
6 changed files with 34 additions and 12 deletions

View File

@@ -124,6 +124,7 @@ var express = require('express'),
});
app.use(function(err, req, res, next) {
// we may use properties of the error object
// here and next(err) appropriately, or if
// we possibly recovered from the error, simply next().