Commit 2ccf70e7 authored by Wolfgang Knopki's avatar Wolfgang Knopki
Browse files

set paths to relative instead of global

parent b267c7ed
...@@ -70,7 +70,7 @@ module.exports = function (app, config, passport) { ...@@ -70,7 +70,7 @@ module.exports = function (app, config, passport) {
app.get('./login', app.get('./login',
passport.authenticate(config.passport.strategy, passport.authenticate(config.passport.strategy,
{ {
successRedirect: './', successRedirect: '/',
failureRedirect: './login' failureRedirect: './login'
}) })
); );
...@@ -78,11 +78,11 @@ module.exports = function (app, config, passport) { ...@@ -78,11 +78,11 @@ module.exports = function (app, config, passport) {
app.post(config.passport.saml.path, app.post(config.passport.saml.path,
passport.authenticate(config.passport.strategy, passport.authenticate(config.passport.strategy,
{ {
failureRedirect: './', failureRedirect: '/',
failureFlash: true failureFlash: true
}), }),
function (req, res) { function (req, res) {
res.redirect('./'); res.redirect('/');
} }
); );
...@@ -392,7 +392,7 @@ module.exports = function (app, config, passport) { ...@@ -392,7 +392,7 @@ module.exports = function (app, config, passport) {
app.get('./logout', function (req, res) { app.get('./logout', function (req, res) {
if (req.user == null) { if (req.user == null) {
return res.redirect('./'); return res.redirect('/');
} }
req.user.nameID = req.user.id; req.user.nameID = req.user.id;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment