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
452fd3f5
Commit
452fd3f5
authored
5 years ago
by
Wolfgang Knopki
Browse files
Options
Download
Email Patches
Plain Diff
logout broken? test
parent
46ebc9cf
master
MLAB-677
devel
devel_wolfgang
patch-1
reset-jul13
reset-merge
test_logoutbutton
testing
1 merge request
!2
Mlab 56
Pipeline
#374
passed with stage
in 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
routes/routes.js
+3
-2
routes/routes.js
with
3 additions
and
2 deletions
+3
-2
routes/routes.js
+
3
-
2
View file @
452fd3f5
...
...
@@ -133,7 +133,7 @@ module.exports = function (app, config, passport) {
app
.
get
(
'
/logout
'
,
function
(
req
,
res
)
{
if
(
req
.
user
==
null
)
{
return
res
.
redirect
(
'
/
account/
'
);
return
res
.
redirect
(
'
/
'
);
}
req
.
user
.
nameID
=
req
.
user
.
id
;
...
...
@@ -149,10 +149,11 @@ module.exports = function (app, config, passport) {
});
}
return
res
.
redirect
(
'
/
'
);
return
res
.
redirect
(
uri
);
});
});
app
.
get
(
'
/profile
'
,
function
(
req
,
res
)
{
if
(
req
.
isAuthenticated
())
{
methods
.
getUserByEmail
(
req
.
user
.
email
,
function
(
data
,
err
){
...
...
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