Skip to content

Commit

Permalink
Added session variable to route users back to /scans page
Browse files Browse the repository at this point in the history
  • Loading branch information
maxxcrawford committed Apr 1, 2020
1 parent 5fb8e57 commit 61dbbc8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controllers/oauth.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ function init(req, res, next, client = FxAOAuthClient) {
const url = new URL(client.code.getUri({state}));
const fxaParams = new URL(req.url, AppConstants.SERVER_URL);

req.session.returnTo = "/scans";

url.searchParams.append("access_type", "offline");
url.searchParams.append("action", "email");

Expand Down

0 comments on commit 61dbbc8

Please sign in to comment.