Cleaned up remember-me error handling.
This commit is contained in:
parent
bc0657a702
commit
d874f5e2da
2 changed files with 7 additions and 4 deletions
|
|
@ -242,8 +242,11 @@ module.exports.rememberMeMiddleware = function(req, res, next){
|
|||
res.clearCookie('rememberme.id');
|
||||
res.clearCookie('rememberme.token');
|
||||
|
||||
//Bitch, Moan, and guess what? That's fuckin' right! COMPLAIN!!!!
|
||||
return loggerUtils.exceptionHandler(res, err);
|
||||
//Quietly handle exceptions without pestering the user
|
||||
loggerUtils.localExceptionHandler(err);
|
||||
|
||||
//Go on with life
|
||||
next();
|
||||
});
|
||||
}else{
|
||||
//Jump to next middleware, this looks gross but it's only because they made me use .then like a bunch of fucking dicks
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue