Add relative_path to authentication redirects

v1.18.x
Charles 11 years ago
parent d5c6b6c334
commit f26a250b01

@ -150,8 +150,8 @@
}));
app.get(strategy.callbackURL, passport.authenticate(strategy.name, {
successRedirect: '/',
failureRedirect: '/login'
successRedirect: nconf.get('relative_path) + '/',
failureRedirect: nconf.get('relative_path') + '/login'
}));
}
}

Loading…
Cancel
Save