Skip to content

Commit

Permalink
[REFACTOR] refactored code
Browse files Browse the repository at this point in the history
  • Loading branch information
at1603 committed Mar 20, 2021
1 parent e79fc43 commit 1103cc0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions middlewares/authMiddlewares.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var middlewareObj = {};

//------------Checking whether user is sign in or not-----------//
middlewareObj.isLoggedIn = function(req,res,next){
if(req.isAuthenticated()){
return next();
Expand Down

0 comments on commit 1103cc0

Please sign in to comment.