Skip to content
GitLab
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
Dec 11, 2019
by
Wolfgang Knopki
Browse files
logout broken? test
parent
46ebc9cf
Pipeline
#374
passed with stage
in 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
routes/routes.js
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
){
...
...
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