Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Administrator
m4lab_landing_page
Commits
2ccf70e7
Commit
2ccf70e7
authored
Dec 06, 2019
by
Wolfgang Knopki
Browse files
set paths to relative instead of global
parent
b267c7ed
Changes
1
Show whitespace changes
Inline
Side-by-side
routes/routes.js
View file @
2ccf70e7
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment