proxy auth: be explicit it is a 302 (default)

This commit is contained in:
Girish Ramakrishnan
2020-12-13 13:24:59 -08:00
parent 79a7e5d4a1
commit 5ecf457a35
+2 -2
View File
@@ -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) {