MCPcopy Index your code
hub / github.com/angular-app/angular-app / authenticationFailed

Function authenticationFailed

server/lib/security.js:47–54  ·  view source on GitHub ↗
(err, user, info)

Source from the content-addressed store, hash-verified

45 },
46 login: function(req, res, next) {
47 function authenticationFailed(err, user, info){
48 if (err) { return next(err); }
49 if (!user) { return res.json(filterUser(user)); }
50 req.logIn(user, function(err) {
51 if ( err ) { return next(err); }
52 return res.json(filterUser(user));
53 });
54 }
55 return passport.authenticate(MongoStrategy.name, authenticationFailed)(req, res, next);
56 },
57 logout: function(req, res, next) {

Callers

nothing calls this directly

Calls 2

filterUserFunction · 0.85
nextFunction · 0.50

Tested by

no test coverage detected