Handle invalid login

This commit is contained in:
terakilobyte
2015-06-16 00:29:32 -04:00
parent 070c248132
commit e08f895769

View File

@ -54,13 +54,10 @@ module.exports = function(User) {
});
});
User.afterRemoteError('login', function(ctx, usr, next) {
User.afterRemoteError('login', function(ctx) {
var res = ctx.res;
var req = ctx.req;
// var args = ctx.args;
debug('after pass lgin');
req.flash('errors', {
msg: 'Invalid username or password.'
});