proxyauth: redirect correctly after login
This commit is contained in:
+2
-2
@@ -45,7 +45,7 @@ function jwtVerify(req, res, next) {
|
||||
}
|
||||
|
||||
function loginPage(req, res) {
|
||||
return res.sendfile(path.join(paths.DASHBOARD_DIR, 'proxyauth-login.html'));
|
||||
return res.sendFile(path.join(paths.DASHBOARD_DIR, 'proxyauth-login.html'));
|
||||
}
|
||||
|
||||
// called by nginx to authorize any protected route
|
||||
@@ -128,7 +128,7 @@ function initializeAuthwallExpressSync() {
|
||||
.use(router)
|
||||
.use(middleware.lastMile());
|
||||
|
||||
router.get ('/', (req, res) => { res.redirect('/login'); });
|
||||
router.get ('/', (req, res) => { res.redirect('/login'); }); // this can never happen
|
||||
router.get ('/login', loginPage);
|
||||
router.get ('/auth', auth);
|
||||
router.post('/login', login);
|
||||
|
||||
Reference in New Issue
Block a user