mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-03-21 03:11:50 +01:00
Updated authorization.js redirect
The authorization.js redirect here sends people to '/login', which doesn't exist. I changed this to point to '/'.
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
exports.requiresLogin = function(req, res, next) {
|
||||
if (!req.isAuthenticated()) {
|
||||
return res.redirect('/login');
|
||||
return res.redirect('/');
|
||||
}
|
||||
next();
|
||||
};
|
||||
@@ -30,4 +30,4 @@ exports.article = {
|
||||
}
|
||||
next();
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user