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

set paths to relative instead of global

parent b267c7ed
Pipeline #345 passed with stage
in 9 seconds
......@@ -70,7 +70,7 @@ module.exports = function (app, config, passport) {
app.get('./login',
passport.authenticate(config.passport.strategy,
{
successRedirect: './',
successRedirect: '/',
failureRedirect: './login'
})
);
......@@ -78,11 +78,11 @@ module.exports = function (app, config, passport) {
app.post(config.passport.saml.path,
passport.authenticate(config.passport.strategy,
{
failureRedirect: './',
failureRedirect: '/',
failureFlash: true
}),
function (req, res) {
res.redirect('./');
res.redirect('/');
}
);
......@@ -392,7 +392,7 @@ module.exports = function (app, config, passport) {
app.get('./logout', function (req, res) {
if (req.user == null) {
return res.redirect('./');
return res.redirect('/');
}
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