Skip to content
This repository was archived by the owner on Aug 30, 2021. It is now read-only.

Commit 01c22e4

Browse files
committed
Updated authorization.js redirect
The authorization.js redirect here sends people to '/login', which doesn't exist. I changed this to point to '/'.
1 parent 39db681 commit 01c22e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config/middlewares/authorization.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44
exports.requiresLogin = function(req, res, next) {
55
if (!req.isAuthenticated()) {
6-
return res.redirect('/login');
6+
return res.redirect('/');
77
}
88
next();
99
};
@@ -30,4 +30,4 @@ exports.article = {
3030
}
3131
next();
3232
}
33-
};
33+
};

0 commit comments

Comments
 (0)