mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-01-30 02:59:17 +01:00
Fixing Redirect in Authentication middleware
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
exports.requiresLogin = function(req, res, next) {
|
||||
if (!req.isAuthenticated()) {
|
||||
return res.redirect('/');
|
||||
return res.redirect('/signin');
|
||||
}
|
||||
next();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user