Commit 452fd3f5 authored by Wolfgang Knopki's avatar Wolfgang Knopki
Browse files

logout broken? test

parent 46ebc9cf
Pipeline #374 passed with stage
in 9 seconds
......@@ -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){
......
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