Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
m4lab_tv1
User Account
Commits
2ccf70e7
Commit
2ccf70e7
authored
5 years ago
by
Wolfgang Knopki
Browse files
Options
Download
Email Patches
Plain Diff
set paths to relative instead of global
parent
b267c7ed
master
MLAB-677
devel
devel_wolfgang
patch-1
reset-jul13
reset-merge
test_logoutbutton
testing
1 merge request
!2
Mlab 56
Pipeline
#345
passed with stage
in 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
routes/routes.js
+4
-4
routes/routes.js
with
4 additions
and
4 deletions
+4
-4
routes/routes.js
+
4
-
4
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
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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
Menu
Explore
Projects
Groups
Snippets