Skip to content
Snippets Groups Projects
Commit 246fce4e authored by Daniel Kovacs's avatar Daniel Kovacs
Browse files

Fix

parent 45f749b9
Branches
No related tags found
No related merge requests found
...@@ -72,9 +72,9 @@ app.get('/callback', function (req, res) { ...@@ -72,9 +72,9 @@ app.get('/callback', function (req, res) {
uri= uri + '?access_token=' + access_token uri= uri + '?access_token=' + access_token
console.log(req.query.state); console.log(req.query.state);
if (req.query.state.hasOwnProperty('from')){ if (req.query.state.hasOwnProperty('from')){
uri=uri+`&from=${req.query.state.from}` uri=uri+`?from=${req.query.state.from}`
} }
res.redirect(uri + '?access_token=' + access_token) res.redirect(uri + '&access_token=' + access_token)
}) })
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment