proxyAuth: allow protecting specific subpath

while I don't think this is useful for apps, it is useful for e2e test atleast
This commit is contained in:
Girish Ramakrishnan
2020-11-20 18:13:23 -08:00
parent 71648d92ae
commit d331597bff
3 changed files with 13 additions and 8 deletions
+1 -1
View File
@@ -142,7 +142,7 @@ function authorize(req, res, next) {
function logoutPage(req, res) {
res.clearCookie('authToken');
res.redirect('/login');
res.redirect('/'); // do not redirect to '/login' as it may not be protected
}
function logout(req, res, next) {