proxy auth: be explicit it is a 302 (default)
This commit is contained in:
+2
-2
@@ -155,14 +155,14 @@ function authorize(req, res, next) {
|
||||
secure: true
|
||||
});
|
||||
|
||||
res.redirect('/');
|
||||
res.redirect(302, '/');
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function logoutPage(req, res) {
|
||||
res.clearCookie('authToken');
|
||||
res.redirect('/'); // do not redirect to '/login' as it may not be protected
|
||||
res.redirect(302, '/'); // do not redirect to '/login' as it may not be protected
|
||||
}
|
||||
|
||||
function logout(req, res, next) {
|
||||
|
||||
Reference in New Issue
Block a user